-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathruff.toml
More file actions
37 lines (33 loc) · 1002 Bytes
/
ruff.toml
File metadata and controls
37 lines (33 loc) · 1002 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
29
30
31
32
33
34
35
36
37
target-version = "py311"
line-length = 100
src = ["src", "tests"]
# Spec 015 T084: per-project trees under `projects/<id>/` may carry their
# own (sometimes stale) `.ruff.toml` configs. Those are project-side
# artifacts authored by the implementer agent and may target older ruff
# versions; the infrastructure-side checks here MUST stay scoped to
# infrastructure code (src/ + tests/), not crawl the generated project
# trees. Without this, `ruff check .` fails on any stale per-project
# config and we can't run the project-wide lint gate.
extend-exclude = [
"projects/",
".venv/",
"build/",
"dist/",
]
[lint]
select = [
"E", # pycodestyle errors
"F", # pyflakes
"W", # pycodestyle warnings
"I", # isort
"B", # flake8-bugbear
"UP", # pyupgrade
"RUF", # ruff-specific
]
ignore = [
"E501", # line-too-long (line-length governs hard cap)
]
[lint.per-file-ignores]
"tests/**/*.py" = ["B011"] # allow `assert False` in tests
[format]
quote-style = "double"