From f6be661244f0fa7ee74afa1587e39a3f8e04ac6a Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: May 05 2020 08:42:46 +0000 Subject: 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 Reviewed-By: Florence Blanc-Renaud --- diff --git a/tox.ini b/tox.ini index 264a5fd..8ae4329 100644 --- a/tox.ini +++ b/tox.ini @@ -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