Spaces:
Running
Running
[tool.ruff] | |
# Exclude a variety of commonly ignored directories. | |
exclude = [ | |
".bzr", | |
".direnv", | |
".eggs", | |
".git", | |
".git-rewrite", | |
".hg", | |
".ipynb_checkpoints", | |
".mypy_cache", | |
".nox", | |
".pants.d", | |
".pyenv", | |
".pytest_cache", | |
".pytype", | |
".ruff_cache", | |
".svn", | |
".tox", | |
".venv", | |
".vscode", | |
"__pypackages__", | |
"_build", | |
"buck-out", | |
"build", | |
"dist", | |
"node_modules", | |
"site-packages", | |
"venv", | |
"frontend" | |
] | |
# Same as Black. | |
line-length = 100 | |
indent-width = 4 | |
# Assume Python 3.9 | |
target-version = "py39" | |
[tool.ruff.lint] | |
# Enable Pyflakes (`F`) and a subset of the pycodestyle (`E`) codes by default. | |
# select = ["E4", "E7", "E9", "F", "W", "PLR"] | |
select = ["ALL"] | |
ignore = ["ERA", "T201", "D", "ANN", "N80", "N81"] | |
#ignore = ["ALL"] | |
# Allow fix for all enabled rules (when `--fix`) is provided. | |
fixable = ["ALL"] | |
unfixable = [] | |
# Allow unused variables when underscore-prefixed. | |
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$" | |
[tool.ruff.lint.pylint] | |
max-args = 6 | |
[tool.ruff.lint.pycodestyle] | |
max-doc-length = 100 | |
[tool.ruff.format] | |
# Like Black, use double quotes for strings. | |
quote-style = "double" | |
# Like Black, indent with spaces, rather than tabs. | |
indent-style = "space" | |
# Like Black, respect magic trailing commas. | |
skip-magic-trailing-comma = false | |
# Like Black, automatically detect the appropriate line ending. | |
line-ending = "auto" | |