diff options
author | Antoine Musso <hashar@free.fr> | 2014-11-16 22:24:34 +0100 |
---|---|---|
committer | Antoine Musso <hashar@free.fr> | 2014-11-16 22:24:34 +0100 |
commit | f4b6b2508cf164be237b2fdeaca01be7153efe8c (patch) | |
tree | bc6969cc387a7c5c676ed232ebc7657fb8039538 /setup.cfg | |
parent | 59589e0fddfc9f3ea318dd7b3c0ef5b4e1bb665c (diff) | |
download | smmap-f4b6b2508cf164be237b2fdeaca01be7153efe8c.tar.gz |
Add tox env for flake8 linter
Most people know about pep8 which enforce coding style. pyflakes
goes a step beyond by analyzing the code.
flake8 is basically a wrapper around both pep8 and pyflakes and comes
with some additional checks. I find it very useful since you only
need to require one package to have a lot of code issues reported to you.
This patch provides a 'flake8' tox environement to easily install and
run the utility on the code base. One simply has to:
tox -eflake8
The env has been added to the default list of environement to have
flake8 run by default.
Configuration tweaking is done in setup.cfg [flake8] section.
The repository in its current state does not pass checks We can later
easily ensure there is no regression by adjusting Travis configuration
to run this env.
More informations about flake8: https://pypi.python.org/pypi/flake8
Diffstat (limited to 'setup.cfg')
-rw-r--r-- | setup.cfg | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -1,2 +1,5 @@ [bdist_wheel] universal = 1 + +[flake8] +exclude = .tox,.venv,build,dist,doc |