Automate Flake8 check in the CI.

This commit is contained in:
Alexis Métaireau 2017-07-07 00:00:31 +02:00
parent 3a9da9f28a
commit 568ee9ecf3
2 changed files with 11 additions and 1 deletions

View file

@ -2,3 +2,4 @@ zest.releaser
tox
pytest
Flask-Testing
Flake8

11
tox.ini
View file

@ -1,5 +1,5 @@
[tox]
envlist = py35,py34,py27,docs
envlist = py35,py34,py27,docs,lint
skip_missing_interpreters = True
[testenv]
@ -17,3 +17,12 @@ install_command = pip install --pre {opts} {packages}
commands = sphinx-build -a -n -b html -d docs/_build/doctrees docs docs/_build/html
deps =
-rdocs/requirements.txt
[testenv:lint]
commands = flake8 ihatemoney
deps =
-rdev-requirements.txt
[flake8]
exclude = migrations
max_line_length = 100