-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathruff.toml
70 lines (62 loc) · 1.19 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
line-length = 120
[lint]
extend-select = [
"ARG",
"B",
"C",
"DTZ",
"E",
"EM",
"F",
"FBT",
"I",
"ICN",
"N",
"PLC",
"PLE",
"PLR",
"PLW",
"RUF",
"S",
"T",
"TID",
"UP",
"W",
"YTT",
]
ignore = [
# Allow non-abstract empty methods in abstract base classes
"B027",
# Allow boolean positional values in function calls, like `dict.get(... True)`
"FBT003",
# Ignore checks for possible passwords
"S105",
"S106",
"S107",
# Ignore complexity
"C901",
"PLR0911",
"PLR0912",
"PLR0913",
"PLR0915",
]
exclude = ["*.ipynb"]
# Allow fix for all enabled rules (when `--fix`) is provided.
fixable = ["ALL"]
unfixable = [
# Don't touch unused imports
"F401",
]
[lint.per-file-ignores]
# Ignore `E402` (import violations) in all `__init__.py` files, and in selected subdirectories.
"__init__.py" = ["E402", "F403", "F405"]
"**/{tests,docs,tools}/*" = ["E402", "PLR2004", "S101", "TID252"]
[format]
quote-style = "single"
exclude = ["*.ipynb"]
[lint.pylint]
max-args = 10
[lint.isort]
known-first-party = ["attractor_explorer"]
[lint.flake8-tidy-imports]
ban-relative-imports = "all"