23 lines
520 B
TOML
23 lines
520 B
TOML
[tool.ruff]
|
|
target-version = "py39"
|
|
line-length = 100
|
|
|
|
[tool.ruff.lint]
|
|
select = [
|
|
"E", # pycodestyle errors
|
|
"F", # pyflakes
|
|
"I", # isort
|
|
"C4", # flake8-comprehensions
|
|
"B", # flake8-bugbear
|
|
"UP", # pyupgrade
|
|
]
|
|
ignore = [
|
|
"B008", # do not perform function calls in argument defaults (FastAPI dependency injection)
|
|
]
|
|
|
|
[tool.ruff.lint.isort]
|
|
known-third-party = ["fastapi", "pydantic", "sqlalchemy"]
|
|
|
|
[tool.ruff.lint.flake8-quotes]
|
|
docstring-quotes = "double"
|
|
inline-quotes = "double" |