34 lines
721 B
INI
34 lines
721 B
INI
|
[tox]
|
||
|
minversion = 2.1
|
||
|
envlist = py310,py39,py38,py37,py36,lint
|
||
|
skipsdist = True
|
||
|
|
||
|
[testenv]
|
||
|
usedevelop = True
|
||
|
install_command = pip install -U {opts} {packages}
|
||
|
setenv =
|
||
|
VIRTUAL_ENV={envdir}
|
||
|
passenv = QISKIT_NEKO_BACKEND
|
||
|
deps =
|
||
|
-r{toxinidir}/requirements-dev.txt
|
||
|
commands =
|
||
|
stestr --test-path ./tests run {posargs}
|
||
|
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
|