-
Notifications
You must be signed in to change notification settings - Fork 1
/
ruff.toml
32 lines (29 loc) · 1.28 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
extend = "ruff-base.toml"
extend-exclude = [
"**/*.ipynb",
"go.py",
"go[0-9].py",
"roll_play.py",
]
# These are rules that commonly cause many ruff warnings. Code will be improved by
# incrementally fixing code to adhere to these rules, but for practical purposes they
# can be ignored by uncommenting each one. You can also add to this list as needed.
lint.extend-ignore = [
"B905", # `zip()` without an explicit `strict=` parameter
"PLR0912", # Too many branches
"PLR0913", # Too many arguments to function call
"PLR0915", # Too many statements
# "PLC1901", # compare-to-empty-string
# "PLR0911", # Too many returns
# "PGH004", # Use specific rule codes when using `noqa`
# "C401", # Unnecessary generator (rewrite as a `set` comprehension)
# "C402", # Unnecessary generator (rewrite as a dict comprehension)
# "C405", # Unnecessary `list` literal (rewrite as a `set` literal)
# "C408", # Unnecessary `dict` call (rewrite as a literal)
# "C416", # Unnecessary `dict` comprehension (rewrite using `dict()`)
# "G010", # warn is deprecated in favor of warning
# "PYI056", # Calling `.append()` on `__all__` may not be supported by all type checkers
]
[lint.extend-per-file-ignores]
# B905 [*] `zip()` without an explicit `strict=` parameter
"**/tests/test_*.py" = ["B905"]