| 1 |
[tool.ruff.lint] |
| 2 |
# First four warning types are enabled by default. |
| 3 |
select = ["E4", "E7", "E9", "F", "C90", "I", "N", "D", "B"] |
| 4 |
ignore = [ |
| 5 |
# crazy-complete uses single quotes for everything |
| 6 |
"D300", # triple-single-quotes |
| 7 |
# These turn off warnings about undocumented public interface. There are too |
| 8 |
# many of these for them to be useful |
| 9 |
"D100", # undocumented-public-module |
| 10 |
"D101", # undocumented-public-class |
| 11 |
"D102", # undocumented-public-method |
| 12 |
"D103", # undocumented-public-function |
| 13 |
"D105", # undocumented-magic-method |
| 14 |
"D107", # undocumented-public-init |
| 15 |
# Unsorted imports are also annoying to deal with. |
| 16 |
"I001", # unsorted-imports |
| 17 |
# This gets triggered because the summary line of docstrings is too long. |
| 18 |
# It would require rewriting a lot of documentation to fix this in the entire |
| 19 |
# codebase |
| 20 |
"D205", # blank-line-after-summary |
| 21 |
"D212", # multi-line-summary-first-line |
| 22 |
] |
| 23 |
# These don't seem to be especially important. |
| 24 |
exclude = ["completions/fpm/old/**", "crazy_complete/.trash.py"] |
| 25 |
pydocstyle.convention = "google" |
| 26 |
|
| 27 |
[tool.ruff.lint.per-file-ignores] |
| 28 |
# I wasn't sure about this warning, so I didn't want to touch it. |
| 29 |
"crazy_complete/argparse_mod.py" = ["B010"] # set-attr-with-constant |
| 30 |
"crazy_complete/bash.py" = ["N806"] # non-lowercase-variable-in-function |
| 31 |
|
| 32 |
[tool.ruff.format] |
| 33 |
quote-style = "single" |