From d1ff1d392790c8a9ea9deb0eddfc1d2abfbe08fc Mon Sep 17 00:00:00 2001 From: Chenxiong Qi Date: Dec 04 2017 03:02:04 +0000 Subject: Configurable flake8 This will make both flake8 and any auto-flake8-check tools in editor happy. Signed-off-by: Chenxiong Qi --- diff --git a/tox.ini b/tox.ini index 689286d..9a04d76 100644 --- a/tox.ini +++ b/tox.ini @@ -27,7 +27,7 @@ commands = basepython = python3 skip_install = true deps = flake8 -commands = flake8 --ignore E501,E731 --exclude freshmaker/migrations/*,.tox/*,build/* +commands = flake8 [testenv:bandit] basepython = python3 @@ -36,3 +36,7 @@ deps = bandit commands = /bin/bash -c "bandit -r -ll $(find . -mindepth 1 -maxdepth 1 ! -name tests ! -name \.\* -type d -o -name \*.py)" ignore_outcome = True + +[flake8] +ignore = E501,E731 +exclude = freshmaker/migrations/*,.tox/*,build/*,__pycache__