5ae0122
@@ -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 @@
basepython = python2
skip_install = true
deps = flake8
- commands = flake8 --ignore E731 --exclude ./.tox,./.git,./module_build_service/migrations,./build
+ commands = flake8
[testenv:bandit]
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.
tox -e flake8
In addition, exclude ./.env as well.
./.env
Signed-off-by: Chenxiong Qi cqi@redhat.com
:thumbsup:
Commit 8a7ad00 fixes this pull-request
Pull-Request has been merged by mprahl
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 ofthem.
In addition, exclude
./.env
as well.Signed-off-by: Chenxiong Qi cqi@redhat.com