Skip to content

Commit 15d98b8

Browse files
committed
Use Ruff linter
1 parent a87ba40 commit 15d98b8

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

pyproject.toml

+6-6
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ profile = "black"
55
asyncio_mode = "auto"
66
addopts = "--ignore=test_build.py"
77

8+
[tool.ruff]
9+
extend-select = ["I"]
10+
811
[tool.hatch]
912

1013
[tool.hatch.metadata]
@@ -17,12 +20,8 @@ path = "fastapi_users_db_beanie/__init__.py"
1720

1821
[tool.hatch.envs.default]
1922
dependencies = [
20-
"flake8",
2123
"pytest",
22-
"requests",
23-
"isort",
2424
"pytest-asyncio",
25-
"flake8-docstrings",
2625
"black",
2726
"mypy",
2827
"codecov",
@@ -31,6 +30,7 @@ dependencies = [
3130
"asynctest",
3231
"httpx",
3332
"asgi_lifespan",
33+
"ruff",
3434
]
3535

3636
[tool.hatch.envs.default.scripts]
@@ -42,13 +42,13 @@ test = [
4242
]
4343
test-cov-xml = "pytest --cov=fastapi_users_db_beanie/ --cov-report=xml --cov-fail-under=100"
4444
lint = [
45-
"isort ./fastapi_users_db_beanie ./tests",
4645
"black . ",
46+
"ruff --fix .",
4747
"mypy fastapi_users_db_beanie/",
4848
]
4949
lint-check = [
50-
"isort --check-only ./fastapi_users_db_beanie ./tests",
5150
"black --check .",
51+
"ruff .",
5252
"mypy fastapi_users_db_beanie/",
5353
]
5454

0 commit comments

Comments
 (0)