-
Notifications
You must be signed in to change notification settings - Fork 19
/
tox.ini
49 lines (43 loc) · 1.24 KB
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Tox (http://tox.testrun.org/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.
[tox]
#envlist = py26,py27,pypy,py33,py34,pep8
#envlist = py27,pep8
envlist = py{27,py,35,36,py3},pep8
[testenv]
setenv = VIRTUAL_ENV={envdir}
usedevelop = True
install_command = pip install -U {opts} {packages}
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands =
nosetests {posargs} -a '!db'
[testenv:db]
commands =
pifpaf run mysql -- nosetests {posargs} -a db
[testenv:pep8]
commands =
flake8 --exclude .git,__pycache__,docs,build,dist
[flake8]
#ignore = E122,E125,E126,E128,E129,E251,E265,E713,F402,F811,F812,H104,H237,H302,H304,H305,H307,H401,H402,H404,H405,H904
ignore = H404,H405
show-source = true
builtins = _
exclude = .venv,.git,.tox
max-line-length = 100
[testenv:coverage]
whitelist_externals = find
# commands = find {toxinidir} -name "*.pyc" -type f -delete
# coverage erase
# pifpaf run mysql -- nosetests --with-coverage --cover-inclusive --cover-html --cover-html-dir={toxinidir}/htmlcov
deps = coverage
{[testenv]deps}
#
#
#
#
#
#
#