mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
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:
12
tox.ini
12
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
|
||||
|
||||
Reference in New Issue
Block a user