-
Notifications
You must be signed in to change notification settings - Fork 10
/
tox.ini
80 lines (68 loc) · 1.63 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
[base]
name = bluepysnap
[tox]
envlist =
lint
py{39,310,311,312}
ignore_basepython_conflict = true
[testenv]
basepython=python3.11,python3.10
deps =
pytest
pytest-cov
extras =
plots
usedevelop = true
setenv =
MPLBACKEND = Agg
commands = pytest tests --cov={[base]name} --cov-report term-missing --cov-fail-under=100 --cov-report=xml {posargs}
[testenv:lint]
deps =
black
isort
pycodestyle
pydocstyle
pylint
commands =
black --check .
isort --check {[base]name} tests setup.py doc/source/conf.py
pycodestyle {[base]name}
pydocstyle {[base]name}
pylint -j4 {[base]name} tests
[testenv:format]
deps =
black
isort
commands =
black .
isort {[base]name} tests setup.py doc/source/conf.py
[testenv:docs]
changedir = doc
extras = docs
commands =
make clean
make html SPHINXOPTS=-W
allowlist_externals = make
# E203: whitespace before ':'
# E501: line too long (handled by black)
# E731: do not assign a lambda expression, use a def
# W503: line break after binary operator
# W504: line break before binary operator
[pycodestyle]
ignore = E203,E501,E731,W503,W504
[pydocstyle]
# ignore the following
# - D413: no blank line after last section
# - D202: no blank line after docstring (handled by black, causes an issue if first line is '#pylint:disable')
add-ignore = D413,D202
convention = google
[gh-actions]
python =
3.8: py38
3.9: py39
3.10: py310
3.11: py311, lint, docs
[pytest]
filterwarnings =
# ignoring the warning about Simulation node sets overwriting Circuit node sets in tests
ignore:Simulation node sets overwrite:RuntimeWarning:bluepysnap