-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathruff.toml
More file actions
31 lines (27 loc) · 961 Bytes
/
Copy pathruff.toml
File metadata and controls
31 lines (27 loc) · 961 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
# Ruff configuration for AST-Healer
target-version = "py311"
line-length = 100
[lint]
select = ["E", "F", "W"]
ignore = [
"E501", # line too long — formatter concern, not linter
"E722", # bare except — used intentionally in subprocess error paths
"E402", # module-level import not at top — used in conftest.py intentionally
"E741", # ambiguous variable name
"F841", # local variable assigned but never used
]
exclude = [
".git",
".venv",
"__pycache__",
"*.egg-info",
"tests/mocks", # CI stub — not production code, skip entirely
]
[lint.per-file-ignores]
# conftest imports pytest after sys.path manipulation — E402 is intentional
"conftest.py" = ["E402", "F401"]
# Test support files: allow unused imports and redefinitions
"tests/*.py" = ["F401", "F811"]
# These files contain intentional runtime bugs — skip all lint
"tests/mock_code.py" = ["E", "F", "W"]
"tests/mock_run.py" = ["E", "F", "W"]