forked from NASA-AMMOS/AIT-Core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
34 lines (30 loc) · 780 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
[tox]
envlist = py37, docs, lint, distcheck
isolated_build = True
requires =
tox-poetry-dev-dependencies
[testenv]
setenv = AIT_CONFIG = {toxinidir}/config/config.yaml
whitelist_externals = pytest
commands = pytest
[testenv:docs]
poetry_add_dev_dependencies = True
setenv = AIT_CONFIG = {toxinidir}/config/config.yaml
whitelist_externals = poetry
commands = poetry run sphinx-build doc/source doc/build
basepython = python3.7
[testenv:lint]
skip_install = true
setenv = AIT_CONFIG = {toxinidir}/config/config.yaml
poetry_add_dev_dependencies = True
commands=
python -m pre_commit run --color=always {posargs:--all}
basepython = python3.7
[testenv:distcheck]
skip_install = true
deps =
twine
poetry
commands =
poetry build
poetry run twine check dist/*