-
Notifications
You must be signed in to change notification settings - Fork 54
Expand file tree
/
Copy pathruff.toml
More file actions
31 lines (26 loc) · 1.1 KB
/
ruff.toml
File metadata and controls
31 lines (26 loc) · 1.1 KB
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
target-version = "py310"
[format]
line-ending = "lf"
# See https://docs.astral.sh/ruff/rules/
[lint]
select = [
"ALL",
]
ignore = [
"D", # pydocstyle
# [*] we currently have these violations that are fixable if we want
"B010", # Do not call `setattr` with a constant attribute value. It is not any safer than normal property access.
"C413", # Unnecessary `list()` call around `sorted()`
"COM812", # Trailing comma missing
"FURB188", # Prefer `str.removeprefix()` over conditionally replacing with slice.
"PIE790", # Unnecessary `pass` statement
"PIE808", # Unnecessary `start` argument in `range`
"RET505", # Unnecessary `...` after `return` statement
"RSE102", # Unnecessary parentheses on raised exception
"RUF010", # Use explicit conversion flag
"SIM114", # Combine `if` branches using logical `or` operator
"SIM118", # Use `key not in dict` instead of `key not in dict.keys()`
"SIM300", # Yoda condition detected
"TC006", # Add quotes to type expression in `typing.cast()`
"TD006", # Invalid TODO capitalization: `...` should be `TODO`
]