2
0
mirror of https://github.com/WikiTeam/wikiteam synced 2024-11-10 13:10:27 +00:00
Commit Graph

3 Commits

Author SHA1 Message Date
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
PiRSquared17
f2b7716e72 Fix tox.ini and clean up/update tests 2014-09-20 11:36:24 -04:00
Antoine Musso
8a8b87225b Easily run tests in a virtualenv with tox and nose
tox is a nice wrapper around virtualenv. It setup a new env that makes
sure you have a clean install without any module beside the standard
one. If you need more modules, simply add them to 'deps =' and tox will
install them from pypi.

nose makes testing easier, it find any files that looks like a test and
run them for you.

The envs are created in /.tox so ignore that directory entirely.
2014-07-01 00:52:04 +02:00