drgn/.flake8
Omar Sandoval 1c0dbcd917 pre-commit: add flake8
This has been useful to run manually before, but I haven't added it to
the CI because it was somewhat noisy. But, it reports some really useful
warnings, so let's configure it for our needs and add it to pre-commit.

Signed-off-by: Omar Sandoval <osandov@osandov.com>
2022-05-17 15:26:41 -07:00

20 lines
447 B
INI

[flake8]
extend-ignore =
# "undefined name": leave this to mypy.
F821,
# These get confused by the C code we have embedded in docstrings in
# various places.
# "indentation contains mixed spaces and tabs"
E101,
# "indentation contains tabs"
W191,
# For the following, we live by Black.
# "whitespace before ':'"
E203,
# "line too long"
E501,
# "line break before binary operator"
W503