mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2026-10-25 14:40:16 -05: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:
1 parent
9c3d00b175
commit
d80b98b9da
1 file changed
+9
-3
@@ -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