-
Notifications
You must be signed in to change notification settings - Fork 3
/
tox.ini
30 lines (27 loc) · 1.1 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
[tox]
envlist = py{38,39,310,311}-backend
isolated_build = true
[testenv]
deps = -r requirements/test.txt
commands =
backend: pytest --backend-tests
!backend: pytest
[testenv:docs]
description = invoke sphinx-build to build the HTML docs
basepython = python3.8
deps = -r requirements/docs.txt
allowlist_externals = find
commands = python -m sphinx -j2 -v -b html -d {toxworkdir}/docs_doctrees docs html
python -m sphinx -j2 -v -b doctest -d {toxworkdir}/docs_doctrees docs html
python -m sphinx -j2 -v -b linkcheck -d {toxworkdir}/docs_doctrees docs html
find html -type f -name "*.ipynb" -not -path "html/_sources/*" -delete
[testenv:static]
description = Code formatting and static analysis
basepython = python3.8
skip_install = true
deps = -r requirements/static.txt
commands = black .
isort .
find docs -type f -regex '.*\.ipynb' -exec nbstripout --extra-keys 'metadata.language_info.version cell.metadata.jp-MarkdownHeadingCollapsed cell.metadata.pycharm' --drop-empty-cells \{\} +
flake8 .
bandit -c pyproject.toml -r src tools docs