[CodeStyle] add ruff rule
This commit is contained in:
parent
fd1d970008
commit
c06ff17d3e
@ -7,11 +7,47 @@ requires-python = ">=3.9"
|
||||
dependencies = [
|
||||
"django>=4.2.21",
|
||||
"redis>=6.1.0",
|
||||
"uvicorn>=0.34.2",
|
||||
]
|
||||
|
||||
[dependency-groups]
|
||||
dev = [
|
||||
"pre-commit>=3.5.0",
|
||||
"pytest>=8.3.5",
|
||||
"pytest-asyncio>=1.0.0",
|
||||
"pytest-django>=4.11.1",
|
||||
]
|
||||
|
||||
[tool.ruff]
|
||||
line-length = 120
|
||||
src = ["tests", "shop", "quantum_stack_interview"]
|
||||
target-version = "py39"
|
||||
|
||||
[tool.ruff.lint]
|
||||
select = [
|
||||
"Q",
|
||||
"F",
|
||||
"SIM",
|
||||
"UP",
|
||||
"FA", # flake8-annotations
|
||||
"I", # isort
|
||||
"B", # flake8-bugbear
|
||||
"C4", # flake8-comprehensions
|
||||
"PGH", # pygrep-hooks
|
||||
"RUF", # ruff
|
||||
"E", # pycodestyle
|
||||
"W", # pycodestyle
|
||||
"YTT", # flake8-2020
|
||||
"T10", # flake8-debugger
|
||||
"TID", # flake8-tidy-imports
|
||||
"ASYNC", # flake8-async
|
||||
"RUF", # ruff
|
||||
"N", # pep8-naming
|
||||
"PL", # Pylint
|
||||
"PTH", # flake8-use-pathlib
|
||||
]
|
||||
|
||||
ignore = ["PLR0911", "PLR0912"]
|
||||
|
||||
[tool.ruff.lint.isort]
|
||||
required-imports = ["from __future__ import annotations"]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user