forked from Qiskit/rustworkx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
83 lines (74 loc) · 1.74 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
[tox]
minversion = 2.1
envlist = py36, py37, py38, py39, py310, lint
[testenv]
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"
deps =
setuptools-rust
fixtures
testtools>=2.5.0
networkx>=2.5
stestr
passenv = RETWORKX_TEST_PRESERVE_IMAGES
changedir = {toxinidir}/tests
commands =
stestr run {posargs}
[testenv:py36]
extras =
mpl
graphviz
[testenv:py37]
extras =
mpl
graphviz
[testenv:py38]
extras =
mpl
graphviz
[testenv:py39]
extras =
mpl
graphviz
[testenv:lint]
basepython = python3
envdir = .tox/lint
deps =
black==21.5b0
flake8
setuptools-rust
whitelist_externals=cargo
commands =
black --check --diff {posargs} '../retworkx' '../tests'
flake8 --per-file-ignores='../retworkx/__init__.py:F405,F403' ../setup.py ../retworkx .
cargo fmt -- --check
[testenv:docs]
basepython = python3
setenv =
{[testenv]setenv}
deps =
-r {toxinidir}/docs/source/requirements.txt
passenv = RETWORKX_DEV_DOCS
changedir = {toxinidir}/docs
commands =
sphinx-build -W -b html source build/html {posargs}
[testenv:black]
basepython = python3
envdir = .tox/lint
deps =
black==21.5b0
commands = black {posargs} '../retworkx' '../tests'
[flake8]
# E125 is deliberately excluded. See https://github.com/jcrocholl/pep8/issues/126
# E123 skipped because it is ignored by default in the default pep8
# E129 skipped because it is too limiting when combined with other rules
# E711 skipped because sqlalchemy filter() requires using == instead of is
# max-line-length, E203, W503 are added for black compatibility
max-line-length = 85
ignore = E125,E123,E129,E711
extend-ignore = E203, W503
exclude = .venv,.git,.tox,dist,doc,*egg,build