From 4e93fcba8a8bd30fbba058d70ba6e3d6e0ad96f5 Mon Sep 17 00:00:00 2001 From: Kodi Arfer Date: Sat, 26 Nov 2016 23:54:59 -0800 Subject: [PATCH] Ignore a new Flake8 whitespace error (#1158) Ignore a new Flake8 whitespace error Fixes #1157. The new check is E305. Since we're now using the `--ignore` option, we have to list all the checks that are ignored by default, too. I decided that ignoring E305 was better than changing the whitespace it was complaining about because, in at least some cases in our current codebase, single blank lines are used to indicate that several top-level definitions are associated with each other. Don't try to ignore the undocumented Flake8 error W504. --- Makefile | 2 +- tox.ini | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 40d8eaf..7913fea 100644 --- a/Makefile +++ b/Makefile @@ -47,7 +47,7 @@ tox: venv tox flake: - flake8 hy tests + flake8 hy tests --ignore=E121,E123,E126,E226,E24,E704,W503,E305 clear: clear diff --git a/tox.ini b/tox.ini index 0162794..a4ab4f0 100644 --- a/tox.ini +++ b/tox.ini @@ -12,4 +12,4 @@ deps = -rrequirements-dev.txt [testenv:flake8] -commands = flake8 hy bin tests +commands = flake8 hy bin tests --ignore=E121,E123,E126,E226,E24,E704,W503,E305