-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
28 lines (25 loc) · 831 Bytes
/
Copy pathpyproject.toml
File metadata and controls
28 lines (25 loc) · 831 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
[tool.ruff]
line-length = 100
target-version = "py311"
extend-exclude = ["data", "docs", ".venv"]
[tool.ruff.lint]
# Conservative rule set: bugs and obvious cleanups, not style nitpicks.
select = [
"E9", # syntax errors
"F", # pyflakes (undefined names, unused imports)
"B", # flake8-bugbear (likely bugs)
"UP", # pyupgrade (modernize syntax for target version)
"I", # import sorting
]
ignore = [
"E501", # line too long — handled by formatter, not linter
"B008", # function call in default argument (FastAPI Depends/Query pattern)
"UP038", # isinstance with tuple — unsupported in 3.10
]
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["F401", "F811"]
"scripts/*" = ["F401"]
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "-q --strict-markers"
asyncio_mode = "auto"