-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathruff.toml
More file actions
35 lines (33 loc) · 1.1 KB
/
ruff.toml
File metadata and controls
35 lines (33 loc) · 1.1 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
target-version = "py312"
[lint]
# See https://docs.astral.sh/ruff/rules/
select = [
"B", # flake8-bugbear (catches likely bugs)
"C4", # flake8-comprehensions
"D2", # pydocstyle (D2xx)
"D3", # pydocstyle (D3xx)
"D4", # pydocstyle (D4xx)
"E", # pycodestyle errors
"F", # Pyflakes
"FURB", # Refactoring suggestions
"I", # isort
"LOG", # Logging best practices
"NPY", # NumPy-specific rules
"PD", # pandas-vet
"PERF", # Performance anti-patterns
"PTH", # flake8-use-pathlib (prefer pathlib over os.path)
"RUF", # Ruff-specific rules
"S", # flake8-bandit (security issues)
"SIM", # flake8-simplify (code simplification)
"UP", # pyupgrade
]
ignore = [
"E501", # line-too-long
"PD002", # inplace argument
"S101", # assert - used extensively in tests and validation
"S603", # subprocess-without-shell-equals-true - false positives with trusted input
"S607", # start-process-with-partial-path - CLI paths are intentional
]
fixable = ["ALL"]
[lint.pydocstyle]
convention = "numpy"