-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathtox.ini
42 lines (37 loc) · 896 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
41
42
[tox]
envlist = py310, py311, py312, 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_qcodes_symlink.py
deps =
py{310,311,312}: -rrequirements.txt
pytest-cov
commands =
# install toolkit first to ensure the correct version
{envpython} -m pip install git+https://github.com/zhinst/zhinst-toolkit
{envpython} -m pip install .
{envpython} scripts/zhinst_qcodes_symlink.py
{envpython} -m pytest --cov=zhinst.qcodes
[testenv:lint]
deps =
flake8
flake8-docstrings
commands =
flake8
[testenv:black]
deps =
black==22.3.0
commands =
black . --check --diff
[testenv:typing]
deps =
mypy
commands =
mypy src