forked from TissueImageAnalytics/tiatoolbox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
47 lines (43 loc) · 1.01 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
44
45
46
47
[tox]
envlist = flake8, black, py38, py39, py310
requires = tox-conda
skip_missing_interpreters=true
[travis]
python =
3.10: py310
3.9: py39
3.8: py38
[testenv:flake8]
basepython = python
deps = flake8
commands = flake8 tiatoolbox tests
[testenv:black]
basepython = python
deps = black
commands = black --check tiatoolbox
[testenv]
setenv =
PYTHONPATH = {toxinidir}
conda_deps=
openjpeg>=2.4.0
conda_channels=
conda-forge
passenv =
TRAVIS CI
deps =
pytest-cov==3.0.0
pytest-runner==5.2
pytest==6.2.5
coverage==6.3.2
toml==0.10.2
-r{toxinidir}/requirements.txt
; If you want to make tox run the tests with the same versions, create a
; requirements.txt with the pinned versions and uncomment the following line:
; -r{toxinidir}/requirements.txt
commands =
pip install -U pip
pytest --basetemp={envtmpdir} \
--cov=tiatoolbox --cov-report=term --cov-report=xml \
--capture=sys \
--durations=10 --durations-min=1.0 \
--maxfail=1