forked from eli64s/readme-ai
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.ruff.toml
45 lines (43 loc) · 976 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
exclude = [
".git",
".ipynb_checkpoints",
".mypy_cache",
".nox",
".pyenv",
".pytest_cache",
".ruff_cache",
".env,",
".venv",
".vscode",
"venv",
]
line-length = 79
indent-width = 4
target-version = "py311"
[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 = []
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