-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathtox.ini
54 lines (51 loc) · 1.11 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
48
49
50
51
52
53
54
[tox]
envlist = py310, py311, coverage, flake8
skip_missing_interpreters = true
setupdir = pyquibbler/
[testenv]
passenv = CI
deps =
pytest
pytest-xdist
pytest-benchmark
pytest-cov
flask==2.1.1
Werkzeug==2.0.3
flask-cors
setuptools
prometheus_client
matplotlib
setenv =
PYTHONPATH={toxinidir}/pyquibbler:{env:PYTHONPATH:}
commands =
pytest tests/ --confcutdir={toxinidir} --ignore=tests/lab_extension {posargs}
[testenv:coverage]
changedir = {toxinidir}
deps =
pytest
pytest-benchmark
pytest-cov
flask==2.1.1
Werkzeug==2.0.3
flask-cors
setuptools
prometheus_client
matplotlib
varname
ipynbname
ipywidgets
ipycytoscape
setenv =
PYTHONPATH={toxinidir}/pyquibbler:{env:PYTHONPATH:}
commands =
python -m pytest {toxinidir}/tests/ \
--confcutdir={toxinidir} \
--ignore={toxinidir}/tests/lab_extension \
--cache-clear \
--cov=pyquibbler/ \
--cov-report xml:coverage.xml \
--cov-fail-under=90 {posargs}
[testenv:flake8]
basepython = python3.10
deps = flake8
commands = flake8 pyquibbler/