-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
45 lines (39 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
[tox]
envlist =
py38{,-cov}
flake8
[testenv]
setenv =
PYTHONPATH = {toxinidir}
deps =
-r{toxinidir}/requirements_dev.txt
; If you want to make tox run the tests with the same versions, create a
; requirements.txt with the pinned versions and uncomment the following line:
; -r{toxinidir}/requirements.txt
commands =
pip install -U pip
!cov: pytest --basetemp={envtmpdir}
cov: coverage run --source dash_component_template -m pytest
cov: coverage xml -o {toxinidir}/coverage.xml
allowlist_externals = make
/bin/bash
[testenv:build_docs]
changedir = docs
description = invoke sphinx-build to build the HTML docs
commands =
pip freeze
make clean
sphinx-build -b html . _build/html
[testenv:deploy_docs]
depends = build_docs
description = invoke mkdocs to deploy the docs
changedir = {toxinidir}
commands =
mkdocs build --clean
mkdocs gh-deploy --clean
[testenv:codestyle]
skip_install = true
changedir = .
description = check code style, e.g. with flake8
deps = flake8
commands = flake8 dash_component_template --count --max-line-length=100