forked from h2020charisma/ramanchada2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
39 lines (31 loc) · 803 Bytes
/
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
[tox]
envlist = py39, mypy, flake8, docs
[gh-actions]
python =
3.9: py39, mypy, flake8, docs
3.10: py310
[flake8]
max-line-length = 120
per-file-ignores =
__init__.py: F401, F403
[testenv]
deps = pytest
changedir = {toxinidir}
commands = pytest --rootdir=tests {posargs}
[testenv:mypy]
basepython = python3.9
deps = mypy
commands = mypy src tests
[testenv:flake8]
basepython = python3.9
deps = flake8
commands = flake8 src tests
[testenv:docs]
deps = pdoc
basepython = python3.9
commands =
pdoc ramanchada2 -o {toxinidir}/docs/_build --no-browser --search --math --docformat numpy --show-source
[testenv:ipynb]
deps = jupyter
whitelist_externals = bash
commands = bash -c 'for ipynb in {toxinidir}/examples/*.ipynb; do jupyter nbconvert --to python $ipynb --stdout|python; done'