2
0
mirror of https://github.com/WikiTeam/wikiteam synced 2024-11-12 07:12:41 +00:00
wikiteam/tox.ini
Antoine Musso 362309a2da 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 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.

The env has NOT been added to the default list of environement.

More informations about flake8: https://pypi.python.org/pypi/flake8
2014-11-16 23:06:27 +01:00

22 lines
392 B
INI

[tox]
# 1.6 for skipsdist
minversion = 1.6
# Dont use setup.py (there is none)
skipsdist = True
# List of environement to run by default
envlist = py27
[testenv]
# Test command with output reported
commands = nosetests --nocapture --nologcapture
deps =
nose
-rrequirements.txt
[testenv:flake8]
commands = flake8 {posargs}
deps = flake8
[flake8]
exclude = .tox,.venv,build,dist,doc