forked from Qiskit/qiskit-neko
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
36 lines (30 loc) · 771 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
[tox]
minversion = 2.1
envlist = py310,py39,py38,py37,py36,neko,lint
skipsdist = True
[testenv]
usedevelop = True
install_command = pip install -U {opts} {packages}
setenv =
VIRTUAL_ENV={envdir}
passenv = QISKIT_NEKO_BACKEND NEKO_TEST_TIMEOUT
deps =
-r{toxinidir}/requirements-dev.txt
commands =
stestr --test-path ./tests run {posargs}
[testenv:neko]
commands =
stestr run {posargs}
[testenv:lint]
envdir = .tox/lint
commands =
black --check {posargs} qiskit_neko tests
pylint -rn --rcfile={toxinidir}/.pylintrc qiskit_neko/ tests/
python tools/verify_headers.py
[testenv:black]
commands = black {posargs} qiskit_neko tests
[testenv:docs]
commands =
sphinx-build -b html -W {posargs} docs/ docs/_build/html
[pycodestyle]
max-line-length = 100