-
Notifications
You must be signed in to change notification settings - Fork 133
Expand file tree
/
Copy pathruff.toml
More file actions
25 lines (22 loc) · 789 Bytes
/
ruff.toml
File metadata and controls
25 lines (22 loc) · 789 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
line-length = 200
target-version = "py39"
exclude = ["_version.py"]
[lint]
select = ["E", "F", "W", "I", "PL"]
ignore = [
# Complexity thresholds (project style)
"PLR0911", # too-many-return-statements
"PLR0912", # too-many-branches
"PLR0913", # too-many-arguments
"PLR0915", # too-many-statements
"PLR2004", # magic-value-comparison
# Import patterns (project style)
"PLC0415", # import-outside-toplevel
# Global variable reads (module-level singleton pattern)
"PLW0602", # global-variable-not-assigned
]
[lint.per-file-ignores]
"examples/**/*.py" = ["F401", "F403", "F405", "F811", "F821", "E402", "E722", "E741"]
"benchmarks/*/case.py" = ["F401", "F403", "F405", "F811", "F821", "E402", "E741"]
[lint.isort]
known-first-party = ["mfc"]