blob: a952678232b3985b92d13d57e1c1a843dd818058 [file] [log] [blame]
Marek Szwalkiewiczbe4c4642020-01-30 13:49:18 +00001[tox]
2envlist=py37,py38
3skipsdist=True
4[testenv]
5setenv =
6 PYTHONPATH = {toxinidir}
7 CONFIGURATION = {toxinidir}/../configuration-local.ini
8deps =
9 -rrequirements/test.txt
10commands = pytest
11[testenv:codelint]
12deps =
13 black
14commands = black -l 120 --check {posargs:.}
15[testenv:doclint]
16deps =
17 flake8-docstrings
18commands = 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]
20basepython = python3.7
21setenv =
22 PYTHONPATH = {toxinidir}
23 CONFIGURATION = {toxinidir}/../configuration-local.ini
24deps =
25 -rrequirements/test.txt
26 pytest-cov
27commands = pytest --cov=manager --cov-fail-under=60 --cov-config={toxinidir}/.coveragerc .