-
Notifications
You must be signed in to change notification settings - Fork 3
/
tox.ini
49 lines (43 loc) · 1.19 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
[tox]
envlist = clean,py310,pre-commit,report,docs
requires =
tox-poetry
tox-pyenv
skip_missing_interpreters = true
[testenv]
deps = pytest
passenv = *
whitelist_externals = poetry
setenv =
GIT_AUTHOR_NAME = "Brent Stone"
GIT_COMMITTER_NAME = "Brent Stone"
GIT_AUTHOR_EMAIL = "brent@stoneguardsoftware.com"
GIT_COMMITTER_EMAIL = "brent@stoneguardsoftware.com"
commands =
poetry install -v
pre-commit install
; poetry run pytest --cov=dev_demo tests/
[testenv:pre-commit]
deps = pre-commit
commands =
poetry install -v
pre-commit run --all-files --show-diff-on-failure
[testenv:report]
deps = coverage
skip_install = true
commands =
coverage report
coverage html
[testenv:docs]
description = invoke sphinx-build to build the HTML docs
basepython = python3.10
commands =
poetry install -v
sphinx-build -d "{toxworkdir}/docs_doctree" docs docs/_build --color --keep-going -n -b html {posargs}
python -c 'import pathlib; print("documentation available under file://\{0\}".format(pathlib.Path(r"{toxworkdir}") / "../docs/_build" / "index.html"))'
[testenv:clean]
deps = coverage
skip_install = true
commands = coverage erase
[pep8]
ignore=E265,E501,W504