-
Notifications
You must be signed in to change notification settings - Fork 3
/
tox.ini
44 lines (37 loc) · 1.07 KB
/
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# content of: tox.ini , put in same dir as setup.py
[tox]
envlist = py38,lint
skipsdist = True
requires = setuptools >= 47.1
[travis]
python =
3.8: py38, docs, lint
[testenv]
passenv = *
deps=-rrequirements-dev.txt
allowlist_externals=git
# See .coveragerc for list of omitted files
commands = versioneer install
git restore --staged sksurgerybard/_version.py
git update-index --assume-unchanged sksurgerybard/_version.py
coverage erase
coverage run -a --source ./sksurgerybard -m pytest -v -s ./tests/
coverage report -m
[testenv:lint]
basepython=python3.8
deps=pylint
{[testenv]deps}
commands=pylint --rcfile=tests/pylintrc --extension-pkg-whitelist=PySide6,vtk,cv2, sksurgerybard tests
[testenv:docs]
basepython=python3.8
changedir = doc
deps=-rrequirements-docs.txt
commands = sphinx-build -M html . build
[testenv:installer]
basepython=python3.8
commands=python -c "print('Installer not needed for this project.')"
[testenv:pip3]
basepython=python3.8
changedir=pip_test
skip_install=True
commands = pip install {posargs}