From 5ae0122b1818a942f7180ec047da0005906e4b23 Mon Sep 17 00:00:00 2001 From: Chenxiong Qi Date: Mon, 22 Oct 2018 09:39:52 +0800 Subject: [PATCH] Move flake8 config into flake8 section in tox.ini Sometimes, it would be convenient to run flake8 directly rather than `tox -e flake8` and the flake8 section in tox.ini will apply to both of them. In addition, exclude ./.env as well. Signed-off-by: Chenxiong Qi --- tox.ini | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index fd7c7801..15f201b3 100644 --- a/tox.ini +++ b/tox.ini @@ -7,7 +7,14 @@ envlist = flake8, py27, py3 [flake8] +ignore = E731 max-line-length = 100 +exclude = + ./.tox + ./.git + ./module_build_service/migrations + ./build + ./.env [testenv] usedevelop = true @@ -30,7 +37,7 @@ commands = basepython = python2 skip_install = true deps = flake8 -commands = flake8 --ignore E731 --exclude ./.tox,./.git,./module_build_service/migrations,./build +commands = flake8 [testenv:bandit] basepython = python2