-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
49 lines (45 loc) · 1.1 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
[tox]
envlist = build, py38, py39, py310, py311, lint
skip_missing_interpreters = True
skipsdist = True
[testenv]
setenv =
LANG=en_US.UTF-8
PYTHONPATH = {toxinidir}
commands =
pytest --timeout=9 --durations=10 --cov=waferview --cov-report term-missing {posargs}
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/requirements_test.txt
[testenv:cov]
setenv =
LANG=en_US.UTF-8
PYTHONPATH = {toxinidir}
commands =
pip install -e .
pytest --timeout=9 --durations=10 --cov=waferview --cov-report=xml {posargs}
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/requirements_test.txt
[testenv:lint]
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/requirements_test.txt
basepython = python3
commands =
ruff check waferview tests
black --check --diff waferview tests
rst-lint README.rst
[testenv:build]
recreate = True
skip_install = True
allowlist_externals =
/bin/sh
/bin/rm
deps =
-r{toxinidir}/requirements_test.txt
commands =
/bin/rm -rf build dist
python -m build
/bin/sh -c "pip install --upgrade dist/*.whl"
py.test tests