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