mirror of
https://github.com/fastapi-users/fastapi-users.git
synced 2025-08-17 05:38:33 +08:00
Use Ruff linter
This commit is contained in:
@ -31,6 +31,8 @@ markers = [
|
|||||||
"router",
|
"router",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[tool.ruff]
|
||||||
|
|
||||||
[tool.hatch]
|
[tool.hatch]
|
||||||
|
|
||||||
[tool.hatch.metadata]
|
[tool.hatch.metadata]
|
||||||
@ -49,12 +51,9 @@ features = [
|
|||||||
"redis",
|
"redis",
|
||||||
]
|
]
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"flake8",
|
|
||||||
"pytest",
|
"pytest",
|
||||||
"requests",
|
|
||||||
"isort",
|
"isort",
|
||||||
"pytest-asyncio",
|
"pytest-asyncio",
|
||||||
"flake8-docstrings",
|
|
||||||
"mike",
|
"mike",
|
||||||
"mkdocs",
|
"mkdocs",
|
||||||
"mkdocs-material",
|
"mkdocs-material",
|
||||||
@ -63,16 +62,15 @@ dependencies = [
|
|||||||
"mypy",
|
"mypy",
|
||||||
"pytest-cov",
|
"pytest-cov",
|
||||||
"pytest-mock",
|
"pytest-mock",
|
||||||
"flit",
|
|
||||||
"markdown-include",
|
"markdown-include",
|
||||||
"pygments",
|
"pygments",
|
||||||
"pymdown-extensions",
|
"pymdown-extensions",
|
||||||
"bumpversion",
|
|
||||||
"httpx-oauth",
|
"httpx-oauth",
|
||||||
"httpx",
|
"httpx",
|
||||||
"asgi_lifespan",
|
"asgi_lifespan",
|
||||||
"uvicorn",
|
"uvicorn",
|
||||||
"types-redis",
|
"types-redis",
|
||||||
|
"ruff",
|
||||||
]
|
]
|
||||||
|
|
||||||
[tool.hatch.envs.default.scripts]
|
[tool.hatch.envs.default.scripts]
|
||||||
@ -83,6 +81,7 @@ lint = [
|
|||||||
"isort ./docs/src -o fastapi_users",
|
"isort ./docs/src -o fastapi_users",
|
||||||
"isort ./examples -o fastapi_users -p app",
|
"isort ./examples -o fastapi_users -p app",
|
||||||
"black . ",
|
"black . ",
|
||||||
|
"ruff --fix .",
|
||||||
"mypy fastapi_users/",
|
"mypy fastapi_users/",
|
||||||
]
|
]
|
||||||
lint-check = [
|
lint-check = [
|
||||||
@ -90,6 +89,7 @@ lint-check = [
|
|||||||
"isort --check-only ./docs/src -o fastapi_users",
|
"isort --check-only ./docs/src -o fastapi_users",
|
||||||
"isort --check-only ./examples -o fastapi_users -p app",
|
"isort --check-only ./examples -o fastapi_users -p app",
|
||||||
"black --check .",
|
"black --check .",
|
||||||
|
"ruff .",
|
||||||
"mypy fastapi_users/",
|
"mypy fastapi_users/",
|
||||||
]
|
]
|
||||||
docs = "mkdocs serve"
|
docs = "mkdocs serve"
|
||||||
|
Reference in New Issue
Block a user