-
Notifications
You must be signed in to change notification settings - Fork 1
/
ruff.toml
53 lines (48 loc) · 1.48 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
48
49
50
51
52
53
lint.select = ["ALL"]
lint.unfixable = [
"T20", # flake8-print, would remove prints
"RUF001", "RUF002", "RUF003", # ambiguous-unicode-character-string, would replace characters unexpectedly
]
target-version = "py37"
lint.ignore = [
"D301",
"D400",
"D105",
"D102",
"ANN002",
"ANN003",
"FA100",
"S603", # check for execution of untrusted input
"ANN101", # Missing type annotation for self in method
"ANN102", # Missing type annotation for cls in classmethod
"D205", # 1 blank line required between summary line and description
"FBT002", # boolean default value in function definition
"TRY300", # Consider moving this statement to an `else` block
"COM812", # format conflits
"ISC001", # format conflits
"D107", # docstring in init
]
extend-exclude = [
"**/.tox/",
"**/.idea/",
"test/examples"
]
line-length = 120
[lint.per-file-ignores]
"**/test/*" = [
"S101", # Use of assert detected.
"S106", # Possible hardcoded password.
"B011", # Do not call assert False since python -O removes these calls.
"ARG001", # Unused function argument (mostly fixtures)
"PLR2004", # Magic value used in comparison, consider replacing {value} with a constant variable
"ANN", # flake8-annotations
"PLR0913", # Too many arguments to function call
"SLF001", # Private member accessed
"D103", # docstring
]
[lint.pydocstyle]
convention = "pep257"
[lint.mccabe]
max-complexity = 10
[lint.isort]
lines-after-imports = 2