47 lines
872 B
TOML
47 lines
872 B
TOML
[tool.ruff]
|
|
line-length = 88
|
|
extend-exclude = [
|
|
"excluded_file.py",
|
|
"migrations",
|
|
"with_excluded_file/other_excluded_file.py",
|
|
]
|
|
per-file-ignores = { "__init__.py" = ["F401"] }
|
|
|
|
[tool.ruff.flake8-bugbear]
|
|
extend-immutable-calls = ["fastapi.Depends", "fastapi.Query"]
|
|
|
|
[tool.ruff.flake8-quotes]
|
|
inline-quotes = "single"
|
|
multiline-quotes = "double"
|
|
docstring-quotes = "double"
|
|
avoid-escape = true
|
|
|
|
[tool.ruff.mccabe]
|
|
max-complexity = 10
|
|
|
|
[tool.ruff.pep8-naming]
|
|
ignore-names = [
|
|
"setUp",
|
|
"tearDown",
|
|
"setUpClass",
|
|
"tearDownClass",
|
|
"setUpModule",
|
|
"tearDownModule",
|
|
"asyncSetUp",
|
|
"asyncTearDown",
|
|
"setUpTestData",
|
|
"failureException",
|
|
"longMessage",
|
|
"maxDiff",
|
|
]
|
|
classmethod-decorators = [
|
|
"classmethod",
|
|
"pydantic.validator",
|
|
]
|
|
staticmethod-decorators = [
|
|
"staticmethod",
|
|
]
|
|
|
|
[tool.ruff.flake8-tidy-imports]
|
|
ban-relative-imports = "parents"
|