qiskit-neko/tox.ini

36 lines
751 B
INI
Raw Permalink Normal View History

2022-01-07 23:36:46 +08:00
[tox]
minversion = 3.15
envlist = py311,py310,py39,py38,neko,lint
2022-01-07 23:36:46 +08:00
[testenv]
usedevelop = True
install_command = pip install -U {opts} {packages}
setenv =
VIRTUAL_ENV={envdir}
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}
[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