-
Notifications
You must be signed in to change notification settings - Fork 175
/
.ruff.toml
49 lines (47 loc) · 1016 Bytes
/
.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
exclude = [
".env,",
".git",
".ipynb_checkpoints",
".mypy_cache",
".nox",
".pyenv",
".pytest_cache",
".ruff_cache",
"venv",
".venv",
".vscode",
]
line-length = 79
indent-width = 4
target-version = "py310"
[lint]
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
extend-select = ["E501"]
select = [
"ARG", # unused arguments
"B", # flake8-bugbear
"E", # pycodestyle
"E722", # bare except statements
"F", # pyflakes
"F401", # remove unused imports
"I", # isort
"N", # pep8-naming
"RUF", # ruff
"SIM", # flake8-simplify
"UP", # pyupgrade
]
fixable = ["ALL"]
ignore = [
"UP006",
"UP007",
"UP035",
]
unfixable = []
[format]
docstring-code-format = true
docstring-code-line-length = "dynamic"
indent-style = "space"
line-ending = "auto"
quote-style = "double"
skip-magic-trailing-comma = false