-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
27 lines (23 loc) · 682 Bytes
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
[tox]
envlist = py37, lint, cov
skip_missing_interpreters = True
[flake8]
basepython = {env:PYTHON3_PATH:python3}
exclude = .git,__pycache
max-line-length = 88
jobs = auto
[testenv]
setenv = PYTHONPATH = {toxinidir}:{toxinidir}/pydigitalstrom
changedir = tests
commands = pytest {posargs}
deps = -r{toxinidir}/requirements_test.txt
[testenv:lint]
basepython = {env:PYTHON3_PATH:python3}
deps = -r{toxinidir}/requirements_test.txt
commands = flake8
[testenv:cov]
basepython = {env:PYTHON3_PATH:python3}
setenv = PYTHONPATH = {toxinidir}:{toxinidir}/pydigitalstrom
changedir = {toxinidir}
commands = pytest --cov --cov-report= {posargs}
deps = -r{toxinidir}/requirements_test.txt