forked from zhinst/zhinst-toolkit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
40 lines (35 loc) · 837 Bytes
/
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
[tox]
envlist = py37, py38, py39, py310, py311, lint, typing
skip_missing_interpreters = true
skipsdist = true
# pyproject.toml: To use a PEP 517 build-backend you are required to configure tox to use an isolated_build
isolated_build = True
[testenv:py3]
basepython = python3
[testenv]
allowlist_externals =
flake8
scripts/zhinst_toolkit_symlink.py
deps =
py{37,38,39,310,311}: -rrequirements.txt
pytest-cov
commands =
{envpython} -m pip install .
{envpython} scripts/zhinst_toolkit_symlink.py
{envpython} -m pytest --cov=zhinst.toolkit
[testenv:lint]
deps =
flake8
flake8-docstrings
commands =
flake8
[testenv:black]
deps =
black==22.8.0
commands =
black . --check --diff
[testenv:typing]
deps =
mypy==0.981 # TODO (markush): 0.982 reports errors.
commands =
mypy src