-
Notifications
You must be signed in to change notification settings - Fork 73
/
tox.ini
71 lines (63 loc) · 1.35 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
[tox]
requires =
tox>=4.2
virtualenv>20.2
env_list =
py{311, 310, 39, 38}
skip_missing_interpreters = true
[testenv]
description = Run the tests with {basepython}
deps =
.[tests]
pass_env =
TF_XLA_FLAGS
commands =
pytest -s -v {posargs}
[testenv:coverage]
description = Run the tests with coverage
base_python = py310
deps =
{[testenv]deps}
coverage
pytest_cov
commands =
python3 -m pytest --cov-report term --cov-report html:htmlcov --cov-report xml --cov=quantus {posargs}
[testenv:build]
description = Build environment
base_python = py310
deps =
.
build
twine
commands =
python3 -m build .
python3 -m twine check ./dist/* --strict
[testenv:lint]
description = Check the code style
deps =
flake8
commands =
python3 -m flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics --exclude=venv,.tox
python3 -m flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics --exclude=venv,.tox
[testenv:type]
description = Run type checking
base_python = py310
deps =
{[testenv]deps}
mypy==0.982
commands =
python3 -m mypy quantus
[testenv:dev]
description = Development environment
base_python = py310
package = editable
commands =
[gh]
python =
3.8 = py38
3.9 = py39
3.10 = py310
3.11 = py311
[flake8]
max-line-length = 127
max-complexity = 10