From 0d6e73771b431b70dc0053722c530988ae552d9e Mon Sep 17 00:00:00 2001
From: Massimiliano Culpo <massimiliano.culpo@gmail.com>
Date: Fri, 26 Oct 2018 00:11:22 +0200
Subject: [PATCH] flake8: explicitly allow line break before or after binary
 operator (#9627)

W503 and W504 are issued for line breaks before or after binary
operators (respectively). This allows either approach (explicitly
instructing flake8 to ignore both of these cases).
---
 .flake8          | 2 +-
 .flake8_packages | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/.flake8 b/.flake8
index 9e7956c919..9188f8efa5 100644
--- a/.flake8
+++ b/.flake8
@@ -20,5 +20,5 @@
 # - N801: CapWords for class names.
 #
 [flake8]
-ignore = E129,E221,E241,E272,E731,F999,N801
+ignore = E129,E221,E241,E272,E731,F999,N801,W503,W504
 max-line-length = 79
diff --git a/.flake8_packages b/.flake8_packages
index 9fcc3b86d4..74b42293af 100644
--- a/.flake8_packages
+++ b/.flake8_packages
@@ -18,5 +18,5 @@
 # - F821: undefined name `name` (needed for cmake, configure, etc.)
 #
 [flake8]
-ignore = E129,E221,E241,E272,E731,F999,F405,F821
+ignore = E129,E221,E241,E272,E731,F999,F405,F821,W503,W504
 max-line-length = 79
-- 
GitLab