24 lines
600 B
TOML
24 lines
600 B
TOML
[tool.ruff]
|
|
target-version = "py38"
|
|
line-length = 88
|
|
|
|
[tool.ruff.lint]
|
|
select = [
|
|
"E", # pycodestyle errors
|
|
"W", # pycodestyle warnings
|
|
"F", # pyflakes
|
|
"I", # isort
|
|
"B", # flake8-bugbear
|
|
"C4", # flake8-comprehensions
|
|
]
|
|
ignore = [
|
|
"E203", # whitespace before ':'
|
|
"E501", # line too long (handled by black)
|
|
"B008", # Do not perform function call in argument defaults (needed for FastAPI's Depends)
|
|
]
|
|
|
|
[tool.ruff.lint.isort]
|
|
known-third-party = ["fastapi", "pydantic", "sqlalchemy"]
|
|
|
|
[tool.ruff.lint.per-file-ignores]
|
|
"__init__.py" = ["F401"] # unused imports |