summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorVirgil Dupras <hsoft@hardcoded.net>2018-08-14 11:14:09 -0400
committerVirgil Dupras <hsoft@hardcoded.net>2018-08-14 11:14:09 -0400
commit23368d93037c7134847e99ff9772e2e2fbc9daa3 (patch)
tree74e5ecb11b744d2b576b1a5da4fb6895246fe6c3 /tox.ini
parent02ad4339388127d29074d43c701b85e2fa0d0058 (diff)
downloadgentoolkit-23368d93037c7134847e99ff9772e2e2fbc9daa3.tar.gz
Add (and fix) flake8 checks in tox
Add config in tox to run flake8 checks. For now, only "F*" errors are checked (errors reported by pyflakes). pep8 style checks are ignored for now. This is accompanied by changes in the code that are necessary to silence these errors. Most of them were about unused imports, but also unsed referenced and even undefined ones (meaning that this code path was broken, gotta increase test coverage). This setup will replace pylint which reports way too many errors to be usable (see next commit).
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini13
1 files changed, 8 insertions, 5 deletions
diff --git a/tox.ini b/tox.ini
index b7bcbdb..41306b1 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,5 +1,5 @@
[tox]
-envlist = py27,py35,py36,py37,pyflakes
+envlist = py27,py35,py36,py37,flake8
skip_missing_interpreters = True
[testenv]
@@ -7,9 +7,12 @@ commands =
python setup.py test
sitepackages = True
-[testenv:pyflakes]
+[testenv:flake8]
deps =
- pyflakes
+ flake8
commands =
- pyflakes pym
-sitepackages = False
+ python -m flake8 pym
+
+[flake8]
+# We initially start small, but we probably want to expand that list with time.
+select = F4,F6,F7,F8,F9