From 966108b72c59b1ea865d06706285a89cae1f8d89 Mon Sep 17 00:00:00 2001 From: Adrian Sampson Date: Mon, 13 Aug 2018 10:37:45 -0400 Subject: [PATCH] Enable flake8 E226 This is the rule that prohibits `1+2` in favor of `1 + 2`. I didn't realize it was disabled by default! --- setup.cfg | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.cfg b/setup.cfg index be2dbe543..0660b2721 100644 --- a/setup.cfg +++ b/setup.cfg @@ -6,7 +6,7 @@ logging-clear-handlers=1 min-version=2.7 accept-encodings=utf-8 # Errors we ignore: -# - E121,E123,E126,E226,E24,E704,W503,W504 flake8 default ignores (have to be listed here to not be overridden) +# - E121,E123,E126,E24,E704,W503,W504 flake8 default ignores, excluding E226 (have to be listed here to not be overridden) # - E221: multiple spaces before operator (used to align visually) # - E731: do not assign a lambda expression, use a def # - F405 object may be undefined, or defined from star imports @@ -20,4 +20,4 @@ accept-encodings=utf-8 # - FI14: `__future__` import "unicode_literals" missing # - FI15: `__future__` import "generator_stop" missing # - E741: ambiguous variable name -ignore=E121,E123,E126,E226,E24,E704,W503,W504,E305,C901,E221,E731,F405,FI50,FI51,FI12,FI53,FI14,FI15,E741 +ignore=E121,E123,E126,E24,E704,W503,W504,E305,C901,E221,E731,F405,FI50,FI51,FI12,FI53,FI14,FI15,E741