]> git.phdru.name Git - m_librarian.git/blob - tox.ini
Run flake8 from root to test docs and scripts
[m_librarian.git] / tox.ini
1 [tox]
2 minversion = 1.8
3 envlist = {py26,py27,py34},{py27,py34}-flake8
4
5 # Base test environment settings
6 [testenv]
7 deps =
8     pytest
9     pytest-cov
10     py26: argparse
11     py26,py27: SQLObject>=2.2.1
12     py34: SQLObject>=3.0.0
13     py26,py27: m_lib>=2.0
14     py34: m_lib>=3.0
15 sitepackages = True
16 # Don't fail or warn on uninstalled commands
17 whitelist_externals =
18     flake8
19
20 [general]
21 commands =
22     python -m pytest --cov=m_librarian
23
24 [testenv:py26]
25 commands = {[general]commands}
26
27 [testenv:py27]
28 commands = {[general]commands}
29
30 [testenv:py34]
31 commands = {[general]commands}
32
33 [testenv:py27-flake8]
34 deps =
35     flake8
36 commands = flake8
37
38 [testenv:py34-flake8]
39 deps =
40     flake8
41 commands = flake8