ruff: Use all rules but some
This commit is contained in:
parent
6573ecd6ad
commit
c0873f4343
1 changed files with 21 additions and 8 deletions
|
@ -22,16 +22,29 @@
|
||||||
ruff = {
|
ruff = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
|
target-version = "py311"; # Matches Debian 12
|
||||||
|
line-length = 79; # writePython3 enforces PEP-8
|
||||||
lint = {
|
lint = {
|
||||||
select = [
|
select = [ "ALL" ];
|
||||||
# Original
|
ignore = [
|
||||||
"F" # pyflakes
|
# Things that don't teach me to write better Python
|
||||||
"I" # isort
|
"CPY" # Copyright
|
||||||
"C90" # mccabe (complexity)
|
"D1" # missing docstring
|
||||||
"E" # pycodestyle error
|
"ERA" # commented out code
|
||||||
"W" # pycodestyle warning
|
"FIX002" # enforce TODOs
|
||||||
"PL" # pylint
|
"T20" # print
|
||||||
|
"TD" # TODOs convention
|
||||||
|
"INP" # missing __init__.py
|
||||||
|
"S603" # subproces untrusted input (broken?)
|
||||||
|
"S101" # asserts
|
||||||
|
# Allow nix-shell
|
||||||
|
"EXE003"
|
||||||
|
"EXE005"
|
||||||
|
# Conflict with formatter
|
||||||
|
"COM"
|
||||||
|
"ISC001"
|
||||||
];
|
];
|
||||||
|
pydocstyle.convention = "pep257";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue