-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathruff.toml
More file actions
52 lines (45 loc) · 1.54 KB
/
ruff.toml
File metadata and controls
52 lines (45 loc) · 1.54 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# Ruff configuration for AURORA project
target-version = "py310"
line-length = 100
indent-width = 4
exclude = [
"tests/fixtures/sample_python_files/broken.py", # intentionally broken for parser tests
]
[lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"UP", # pyupgrade
]
ignore = [
"E501", # line too long (handled by formatter)
"E721", # type comparison
"E722", # bare except
"F401", # unused import (many are intentional for re-exports)
"UP035", # deprecated typing imports (e.g., Dict, List)
]
[lint.per-file-ignores]
"__init__.py" = ["F401", "F403"] # unused imports
"tests/**/*.py" = [
"S101", # assert statements in tests
"ARG", # unused args in tests (fixtures may not use all)
"PLR2004", # magic values ok in tests
"F841", # unused local variable (tests often assign for verification)
"PLC0415", # import at top-level (tests often import in fixtures/functions)
"PLR0913", # too many arguments (test functions with many fixtures)
"PLR0915", # too many statements (complex test scenarios)
]
"tests/fixtures/sample_python_files/broken.py" = ["ALL"] # intentionally broken file for parser tests
[lint.isort]
known-first-party = ["aurora_core", "aurora_context_code", "aurora_soar", "aurora_testing"]
force-single-line = false
lines-after-imports = 2
[lint.mccabe]
max-complexity = 10
[format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"