-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
45 lines (41 loc) · 1.49 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 =
lint
mypy
docs
[testenv:lint]
skip_install = true
deps = pre-commit
commands = pre-commit run --all-files --show-diff-on-failure
# adding http(s)_proxy is a workaround for
# https://github.com/tox-dev/tox/pull/2378/files
passenv =
HOME
http_proxy
https_proxy
[testenv:mypy]
description = run via `tox -e mypy` from outside the LXC container on Python 3.6+
skip_install = true
deps =
mypy
-r requirements/types.txt
allowlist_externals =
{toxinidir}/scripts/update-version-info.sh
commands_pre =
{toxinidir}/scripts/update-version-info.sh
commands =
mypy --follow-imports=silent \
{posargs:lib/lp/answers lib/lp/app lib/lp/archivepublisher lib/lp/archiveuploader lib/lp/buildmaster lib/lp/charms/model/charmrecipebuildbehaviour.py lib/lp/code/model/cibuildbehaviour.py lib/lp/code/model/recipebuilder.py lib/lp/code/subscribers lib/lp/oci/model/ocirecipebuildbehaviour.py lib/lp/snappy/model/snapbuildbehaviour.py lib/lp/soyuz/model/binarypackagebuildbehaviour.py lib/lp/soyuz/model/livefsbuildbehaviour.py lib/lp/testing lib/lp/translations/model/translationtemplatesbuildbehaviour.py}
[testenv:docs]
basepython = python3
skip_install = true
deps =
-r {toxinidir}/requirements/docs.txt
commands =
sphinx-build -W -b html {toxinidir}/doc/ {toxinidir}/doc/_build/html
[testenv:update-docs]
skip_install = true
deps =
pip-tools
commands =
pip-compile --upgrade {toxinidir}/requirements/docs.in --output-file {toxinidir}/requirements/docs.txt