-
Notifications
You must be signed in to change notification settings - Fork 0
/
ruff.toml
47 lines (41 loc) · 1.25 KB
/
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# Configuration file for ruff, the one lint tool to rule them all.
# Assume Python 3.9 [end of life will be October 2025. See https://endoflife.date/python]
target-version = "py39"
exclude = [
"bin/rebuild",
"nonstandard",
]
line-length = 135
preview = true
[lint]
select = [
"E", # pycodestyle
"W", # pycodestyle
"E225", # pycodestyle missing whitespace around operator
"E231", # pycodestyle missing whitespace after ','
"F", # pyflakes
"UP", # pyupgrade
"PLE", # pylint errors
"PLW", # pylint warnings
"PLR", # pylint refactor
"PLC", # pylint conventions
"NPY", # numpy-specific
# "N", # pep8-naming
# "D", # pydocstyle
]
ignore = [
# "E501", # line too long
"UP015", # Unneccessary open mode parameters ("r" is now the default, I guess)
# "UP031", # use f-string instead of percent format
# "UP032", # use f-string instead of format
"PLR2004", # Magic value used in comparison
"PLR0911", # too many return statements
"PLR0912", # too many branches
"PLR0913", # too many arguments
"PLR0915", # too many statements
# "NPY002"
]
# Loosen default allowed number of positional arguments and local variables (was 5, 15) -> (8, 20).
[lint.pylint]
max-positional-args = 8
max-locals = 20