]> git.proxmox.com Git - mirror_ovs.git/commitdiff
python: Disable flake8 warning W504 "line break after binary operator".
authorBen Pfaff <blp@ovn.org>
Thu, 10 Jan 2019 23:23:46 +0000 (15:23 -0800)
committerBen Pfaff <blp@ovn.org>
Fri, 11 Jan 2019 16:45:07 +0000 (08:45 -0800)
OVS Python uses this style all over and I don't see a reason to avoid it.

Acked-by: Numan Siddique <nusiddiq@redhat.com>
Tested-by: Numan Siddique <nusiddiq@redhat.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
Makefile.am

index 8408509c9a83f75d2b16663c9e0d862fea7b2507..ff1f94b4841ffb7b70866eafe704ef4b6333b0ee 100644 (file)
@@ -392,6 +392,7 @@ ALL_LOCAL += flake8-check
 #   E131 continuation line unaligned for hanging indent
 #   E722 do not use bare except, specify exception instead
 #   W503 line break before binary operator
+#   W504 line break after binary operator
 # F*** -- warnings native to flake8
 #   F811 redefinition of unused <name> from line <N> (only from flake8 v2.0)
 # D*** -- warnings from flake8-docstrings plugin
@@ -401,7 +402,7 @@ ALL_LOCAL += flake8-check
 #   H233 Python 3.x incompatible use of print operator
 #   H238 old style class declaration, use new style (inherit from `object`)
 FLAKE8_SELECT = H231,H232,H233,H238
-FLAKE8_IGNORE = E121,E123,E125,E126,E127,E128,E129,E131,E722,W503,F811,D,H,I
+FLAKE8_IGNORE = E121,E123,E125,E126,E127,E128,E129,E131,E722,W503,W504,F811,D,H,I
 flake8-check: $(FLAKE8_PYFILES)
        $(FLAKE8_WERROR)$(AM_V_GEN) \
          src='$^' && \