forked from Qiskit/qiskit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
65 lines (58 loc) · 1.6 KB
/
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
[tox]
minversion = 2.1
envlist = py36, py37, py38, lint
skipsdist = True
[testenv]
usedevelop = True
install_command = pip install -c{toxinidir}/constraints.txt -U {opts} {packages}
setenv =
VIRTUAL_ENV={envdir}
LANGUAGE=en_US
LC_ALL=en_US.utf-8
ARGS="-V"
QISKIT_SUPRESS_PACKAGING_WARNINGS=Y
QISKIT_TEST_CAPTURE_STREAMS=1
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/requirements-dev.txt
commands =
stestr run {posargs}
[testenv:lint]
envdir = .tox/lint
basepython = python3
commands =
black --check {posargs} qiskit test tools examples setup.py
pylint -rn qiskit test tools
{toxinidir}/tools/verify_headers.py qiskit test tools examples
{toxinidir}/tools/find_optional_imports.py
reno lint
[testenv:black]
envdir = .tox/lint
commands = black {posargs} qiskit test tools examples setup.py
[testenv:coverage]
basepython = python3
setenv =
{[testenv]setenv}
PYTHON=coverage3 run --source qiskit --parallel-mode
commands =
stestr run {posargs}
coverage3 combine
coverage3 report
[testenv:docs]
basepython = python3
setenv =
{[testenv]setenv}
QISKIT_DOCS=TRUE
QISKIT_SUPPRESS_PACKAGING_WARNINGS=Y
deps =
-r{toxinidir}/requirements-dev.txt
commands =
sphinx-build -W -b html -j auto docs/ docs/_build/html {posargs}
[pycodestyle]
max-line-length = 105
# default ignores + E741 because of opflow global variable I
# + E203 because of a difference of opinion with black
# codebase does currently comply with: E133, E242, E704, W505
ignore = E121, E123, E126, E133, E226, E241, E242, E704, W503, W504, W505, E741, E203
[flake8]
max-line-length = 105
extend-ignore = E203, E741