blob: 8cf1776ba2d01134544ed2ed09dd05ec0fa0f6d0 [file] [log] [blame]
Marek Szwalkiewicz5064cb82020-01-23 15:27:26 +00001[tox]
2envlist=py37,py38
3skipsdist=True
4[testenv]
5setenv =
6 CONFIGURATION = configuration-local.ini
7deps =
8 -rtest-requirements.txt
9commands = 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 =
21 CONFIGURATION = configuration-local.ini
22deps =
23 -rtest-requirements.txt
24 pytest-cov
25commands = pytest --cov=manager --cov=resource_resolution --cov-fail-under=60 --cov-config={toxinidir}/.coveragerc resource_resolution/