Marek Szwalkiewicz | 5064cb8 | 2020-01-23 15:27:26 +0000 | [diff] [blame^] | 1 | [tox] |
| 2 | envlist=py37,py38 |
| 3 | skipsdist=True |
| 4 | [testenv] |
| 5 | setenv = |
| 6 | CONFIGURATION = configuration-local.ini |
| 7 | deps = |
| 8 | -rtest-requirements.txt |
| 9 | commands = pytest resource_resolution/ |
| 10 | [testenv:codelint] |
| 11 | deps = |
| 12 | black |
| 13 | commands = black -l 120 --check {posargs:.} |
| 14 | [testenv:doclint] |
| 15 | deps = |
| 16 | flake8-docstrings |
| 17 | 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:.} |
| 18 | [testenv:coverage] |
| 19 | basepython = python3.7 |
| 20 | setenv = |
| 21 | CONFIGURATION = configuration-local.ini |
| 22 | deps = |
| 23 | -rtest-requirements.txt |
| 24 | pytest-cov |
| 25 | commands = pytest --cov=manager --cov=resource_resolution --cov-fail-under=60 --cov-config={toxinidir}/.coveragerc resource_resolution/ |