-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathruff.toml
More file actions
33 lines (32 loc) · 1.41 KB
/
ruff.toml
File metadata and controls
33 lines (32 loc) · 1.41 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
32
33
src = ["apps/*", "libs/*"]
exclude = ["tools/git-filter-repo/*"]
[lint]
# https://docs.astral.sh/ruff/rules/
select = [
"ASYNC", # flake8-async - async checks
"C4", # flake8-comprehensions - list/set/dict/generator comprehensions
"E", # pycodestyle - error rules
"F", # pyflakes - general Python errors, undefined names
"I", # isort - import sorting
"PERF", # perflint - performance anti-pattern rules
"PLC", # pylint - convention rules
"PLE", # pylint - error rules
"PLW", # pylint - warning rules
"T20", # flake8-print - print statements
"UP", # pyupgrade - force modern idioms
"W", # pycodestyle - warning rules
# TODO:
#"FA", # flake8-future-annotations - forced `from __future__ import annotations`
]
ignore = [
"E501", # Line too long ({width} > {limit})
"E712", # Avoid equality comparisons to `True`; use `if {cond}:` for truth checks
"F403", # `from {name} import *` used; unable to detect undefined names
"F405", # `{name}` may be undefined, or defined from star imports
"F841", # Local variable `{name}` is assigned to but never used
"PLW2901", # Outer {outer_kind} variable {name} overwritten by inner {inner_kind} target
"PERF203", # `try`-`except` within a loop incurs performance overhead
# Trailing whitespace, and blank lines which we use in test assertions:
"W291",
"W293",
]