65 lines
1.3 KiB
TOML
65 lines
1.3 KiB
TOML
# https://github.com/astral-sh/ruff/blob/main/docs/configuration.md#shell-autocompletion
|
|
|
|
cache-dir = "~/.cache/ruff"
|
|
indent-width = 4
|
|
line-length = 128
|
|
target-version = "py314"
|
|
|
|
# Exclude a variety of commonly ignored directories.
|
|
exclude = [
|
|
"__pypackages__",
|
|
"_build",
|
|
".bzr",
|
|
".direnv",
|
|
".eggs",
|
|
".git-rewrite",
|
|
".git",
|
|
".hg",
|
|
".ipynb_checkpoints",
|
|
".mypy_cache",
|
|
".nox",
|
|
".pants.d",
|
|
".pyenv",
|
|
".pytest_cache",
|
|
".pytype",
|
|
".ruff_cache",
|
|
".svn",
|
|
".tox",
|
|
".venv",
|
|
".vscode",
|
|
"buck-out",
|
|
"build",
|
|
"dist",
|
|
"node_modules",
|
|
"site-packages",
|
|
"venv",
|
|
]
|
|
|
|
|
|
[lint]
|
|
# Enable Pyflakes (`F`) and a subset of the pycodestyle (`E`) codes by default.
|
|
# Unlike Flake8, Ruff doesn't enable pycodestyle warnings (`W`) or
|
|
# McCabe complexity (`C901`) by default.
|
|
select = ["E4", "E7", "E9", "F", "TC", "FAST", "TD", "I"]
|
|
ignore = []
|
|
|
|
# Allow fix for all enabled rules (when `--fix`) is provided.
|
|
fixable = ["ALL"]
|
|
unfixable = []
|
|
|
|
[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
|
|
|
|
[lint.isort]
|
|
case-sensitive = true
|
|
combine-as-imports = true
|
|
force-single-line = true
|
|
force-sort-within-sections = true
|
|
lines-after-imports = 1 |