-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtox.ini
More file actions
48 lines (42 loc) · 1012 Bytes
/
tox.ini
File metadata and controls
48 lines (42 loc) · 1012 Bytes
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
[tox]
envlist = coverage-clean,{py37,py38,py39,py39latest},docs,flake8,coverage-report
[testenv]
deps =
-r{toxinidir}/requirements_dev.txt
passenv = ARCHFLAGS LDFLAGS CFLAGS INCLUDE LIB LD_LIBRARY_PATH USERNAME TERM
usedevelop=True
setenv =
COVERAGE_FILE = .coverage.{envname}
commands = py.test --cov --cov-report= {posargs}
[testenv:py39verbose]
passenv = TERM
deps =
-r{toxinidir}/requirements_dev.txt
commands =
coverage run -m pytest -v {posargs}
coverage report
[testenv:docs]
whitelist_externals=make
basepython = python3.9
deps = sphinx
commands =
python setup.py develop
sphinx-apidoc -F -o docs ./src/sktutor
make -C ./docs/ html
[testenv:flake8]
basepython = python3.9
deps = flake8
commands = flake8 src tests setup.py
[testenv:coverage-clean]
setenv =
COVERAGE_FILE = .coverage
deps = coverage
commands =
coverage erase
[testenv:coverage-report]
setenv =
COVERAGE_FILE = .coverage
deps = coverage
commands =
coverage combine
coverage report