mirror of
https://github.com/JakeHillion/drgn.git
synced 2024-12-22 01:03:07 +00:00
1c0dbcd917
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>
20 lines
447 B
INI
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
|