Marek Szwalkiewicz | be4c464 | 2020-01-30 13:49:18 +0000 | [diff] [blame] | 1 | [tox] |
2 | envlist=py37,py38 | ||||
3 | skipsdist=True | ||||
4 | [testenv] | ||||
5 | setenv = | ||||
6 | PYTHONPATH = {toxinidir} | ||||
7 | CONFIGURATION = {toxinidir}/../configuration-local.ini | ||||
8 | deps = | ||||
9 | -rrequirements/test.txt | ||||
10 | commands = pytest | ||||
11 | [testenv:codelint] | ||||
12 | deps = | ||||
13 | black | ||||
14 | commands = black -l 120 --check {posargs:.} | ||||
15 | [testenv:doclint] | ||||
16 | deps = | ||||
17 | flake8-docstrings | ||||
18 | commands = flake8 --doctest --docstring-convention google --max-line-length 120 --exclude .svn,CVS,.bzr,.hg,.git,__pycache__,.tox,.eggs,*.egg,*test.py --select=D {posargs:.} | ||||
19 | [testenv:coverage] | ||||
20 | basepython = python3.7 | ||||
21 | setenv = | ||||
22 | PYTHONPATH = {toxinidir} | ||||
23 | CONFIGURATION = {toxinidir}/../configuration-local.ini | ||||
24 | deps = | ||||
25 | -rrequirements/test.txt | ||||
26 | pytest-cov | ||||
27 | commands = pytest --cov=manager --cov-fail-under=60 --cov-config={toxinidir}/.coveragerc . |