2022-01-07 23:36:46 +08:00
|
|
|
[tox]
|
|
|
|
minversion = 2.1
|
2022-01-08 02:23:17 +08:00
|
|
|
envlist = py310,py39,py38,py37,py36,neko,lint
|
2022-01-07 23:36:46 +08:00
|
|
|
|
|
|
|
[testenv]
|
|
|
|
usedevelop = True
|
|
|
|
install_command = pip install -U {opts} {packages}
|
|
|
|
setenv =
|
|
|
|
VIRTUAL_ENV={envdir}
|
2023-01-24 20:18:54 +08:00
|
|
|
passenv = QISKIT_NEKO_BACKEND,NEKO_TEST_TIMEOUT
|
2022-01-07 23:36:46 +08:00
|
|
|
deps =
|
|
|
|
-r{toxinidir}/requirements-dev.txt
|
|
|
|
commands =
|
|
|
|
stestr --test-path ./tests run {posargs}
|
2022-01-08 02:23:17 +08:00
|
|
|
|
|
|
|
[testenv:neko]
|
|
|
|
commands =
|
2022-01-07 23:36:46 +08:00
|
|
|
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
|