24 lines
600 B
TOML
24 lines
600 B
TOML
|
[tool.pyright]
|
||
|
venvPath = "."
|
||
|
venv = ".venv"
|
||
|
|
||
|
|
||
|
[tool.ruff.lint]
|
||
|
# 1. Enable flake8-bugbear (`B`) rules, in addition to the defaults.
|
||
|
select = ["E4", "E7", "E9", "F", "B"]
|
||
|
|
||
|
# 2. Avoid enforcing line-length violations (`E501`)
|
||
|
ignore = ["E501"]
|
||
|
|
||
|
# 3. Avoid trying to fix flake8-bugbear (`B`) violations.
|
||
|
unfixable = ["B"]
|
||
|
|
||
|
# 4. Ignore `E402` (import violations) in all `__init__.py` files, and in selected subdirectories.
|
||
|
[tool.ruff.lint.per-file-ignores]
|
||
|
"__init__.py" = ["E402"]
|
||
|
"**/{tests,docs,tools}/*" = ["E402"]
|
||
|
|
||
|
[tool.ruff.format]
|
||
|
# 5. Use single quotes in `ruff format`.
|
||
|
quote-style = "single"
|