3
0

move flake8 and mypy to lints.sh; add fmts.sh; use more linters

This commit is contained in:
2023-11-15 12:15:57 +01:00
parent 09ddea939c
commit fdd38d7498
6 changed files with 129 additions and 61 deletions

11
.pycodestyle Normal file
View File

@@ -0,0 +1,11 @@
[pycodestyle]
# E203 not pep8 compliant (https://github.com/psf/black/issues/280)
# E266 too many leading '#' for block comment [ I like marking disabled code blocks with '### ' ]
# E402 module level import not at top of file [ usually on purpose. might use individual overrides instead? ]
# E701 multiple statements on one line [ still quite readable in short forms ]
# E713 test for membership should be not in [ disagree: want `not a in x` ]
# E714 test for object identity should be 'is not' [ disagree: want `not a is x` ]
# W503 line break before binary operator [ gotta pick one way ]
ignore = E203,E266,E402,E701,E713,E714,W503
max-line-length = 120
exclude = *_pb2.py