-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
/
Copy pathruff.toml
33 lines (27 loc) · 858 Bytes
/
ruff.toml
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
line-length = 88
select = ["F", "E", "W", "UP"]
ignore = ["E501", "E741"]
exclude = [
"scipy/datasets/_registry.py"
]
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
# Assume Python 3.9
target-version = "py39"
[per-file-ignores]
"**/__init__.py" = ["E402", "F401", "F403", "F405"]
"**/test_*.py" = ["D"]
"scipy/_lib/uarray.py" = ["F403", "F401"]
"scipy/linalg/blas.py" = ["F403", "E402"]
"scipy/linalg/lapack.py" = ["F403", "E402", "F405"]
"scipy/stats/distributions.py" = ["F403", "F405"]
"scipy/stats/mstats.py" = ["F403", "F401"]
"scipy/stats/qmc.py" = ["F403"]
"scipy/optimize/_linprog.py" = ["F401"]
"scipy/optimize/_linprog_ip.py" = ["F401"]
"setup.py" = ["ALL"]
[mccabe]
# Unlike Flake8, default to a complexity level of 10.
max-complexity = 10
[pydocstyle]
convention = "numpy"