Reconfigure pycodestyle

Disable some warnings that are not PEP-8 compatible.

Disable warnings E731 and E741. IPA code uses ``l`` as variable names
and assignment of lambda expressions a lot.

Ignore auto-generated remote plugins and build directories.

Related: https://pagure.io/freeipa/issue/8306
Signed-off-by: Christian Heimes <cheimes@redhat.com>
Reviewed-By: Florence Blanc-Renaud <frenaud@redhat.com>
This commit is contained in:
Christian Heimes
2020-05-04 09:41:46 +02:00
parent 6386c0cbdd
commit f6be661244

12
tox.ini
View File

@@ -50,6 +50,12 @@ commands=
[pycodestyle]
# E402 module level import not at top of file
# W503 line break before binary operator
ignore = E402, W503
# E203 whitespace before ':' (not PEP-8)
# E231 missing whitespace after ',' (used by black)
# W503 line break before binary operator (not PEP-8)
# E731 do not assign a lambda expression
# E741 ambiguous variable name 'l'
ignore = E203, E402, E231, W503, E731, E741
max-line-length = 80
# exclude auto-generated remote plugins
exclude=.git,.venv,build,_build,rpmbuild,2_49,2_114,2_156,2_164