-
Notifications
You must be signed in to change notification settings - Fork 67
Expand file tree
/
Copy pathruff.toml
More file actions
44 lines (38 loc) · 731 Bytes
/
ruff.toml
File metadata and controls
44 lines (38 loc) · 731 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
34
35
36
37
38
39
40
41
42
43
44
line-length = 88
target-version = "py310"
[lint]
extend-select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"C", # flake8-comprehensions
"B", # flake8-bugbear
"UP", # pyupgrade
"PT", # flake8-pytest-style
"TCH", # flake8-type-checking
"RET", # flake8-return
"RUF", # ruff
]
ignore = [
"E501",
"C901", # too complex"
"RUF012",
]
exclude = [
".direnv",
".git",
".mypy_cache",
".ruff_cache",
".venv",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"venv",
]
per-file-ignores = {}
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"