ruff: Use all rules but some

This commit is contained in:
Geoffrey Frogeye 2025-05-08 17:30:44 +02:00
parent 6573ecd6ad
commit c0873f4343

View file

@ -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";
}; };
}; };
}; };