-
Notifications
You must be signed in to change notification settings - Fork 996
Expand file tree
/
Copy pathruff.toml
More file actions
33 lines (31 loc) · 844 Bytes
/
Copy pathruff.toml
File metadata and controls
33 lines (31 loc) · 844 Bytes
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
line-length = 120
target-version = "py311"
exclude = [
"**/.venv/",
"**/dist/",
"**/build/",
]
[lint]
# Tests are formatted (via `ruff format`) but excluded from lint rules, which
# are too noisy for test code (unused imports/vars, import ordering).
exclude = [
"tests/**",
"**/tests/**",
]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # Pyflakes
"I", # isort
]
ignore = [
"E501", # line too long (handled by formatter)
"E402", # module import not at top of file
"F401", # unused import (too noisy during development)
"F841", # unused variable (too noisy during development)
"F811", # redefined while unused
"F821", # undefined name (forward references in type hints)
]
[format]
quote-style = "double"
indent-style = "space"