forked from pennsignals/dsdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
66 lines (60 loc) · 1.39 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
[testenv:bootstrap]
deps =
jinja2
matrix
tox
skip_install = true
commands =
python ci/bootstrap.py --no-env
passenv =
*
; a generative tox configuration, see: https://tox.readthedocs.io/en/latest/config.html#generative-envlist
[tox]
envlist =
clean,
check,
docs,
{py37,py38},
report
ignore_basepython_conflict = true
[testenv]
basepython =
py37: {env:TOXPYTHON:python3.7}
py38: {env:TOXPYTHON:python3.8}
{bootstrap,clean,check,report,docs}: {env:TOXPYTHON:python3}
setenv =
PYTHONPATH={toxinidir}/tests
PYTHONUNBUFFERED=yes
passenv =
*
usedevelop = false
commands =
python -m pip install -U pip
python -m pip install .[lint]
pre-commit run --all-files
- python -m pip install .[mssql]
- python -m pip install .[mongo]
python -m pip install .[test]
{posargs:pytest}
[testenv:check]
commands =
python -m pip install .[check]
python setup.py check --strict --metadata --restructuredtext
[testenv:doc]
usedevelop = true
install_command =
python -m pip install --no-use-pep517 {opts} {packages}
commands =
python -m pip install .[doc]
sphinx-build {posargs:-E} -b html docs dist/docs
sphinx-build -b linkcheck docs dist/docs
[testenv:report]
deps = coverage
skip_install = true
commands =
coverage report
coverage html
[testenv:clean]
commands = coverage erase
skip_install = true
deps = coverage