-
Notifications
You must be signed in to change notification settings - Fork 340
Expand file tree
/
Copy pathtox.ini
More file actions
53 lines (47 loc) · 1.33 KB
/
tox.ini
File metadata and controls
53 lines (47 loc) · 1.33 KB
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
[tox]
minversion = 4.0
skipsdist = True
skip_missing_interpreters = True
envlist = cz,config-check
[testenv]
passenv =
DOCKER_HOST
FORCE_COLOR
GITHUB_ACTIONS
GITHUB_WORKSPACE
NO_COLOR
PWD
setenv =
DOCS_SOURCE = docs/source
DOCS_BUILD = docs/build/html
VIRTUAL_ENV={envdir}
whitelist_externals = true
usedevelop = True
install_command = pip install {opts} {packages}
isolated_build = True
[testenv:cz]
basepython = python3
deps = -r{toxinidir}/requirements-lint.txt
allowlist_externals = git,{toxinidir}/ci/cz-check.sh
commands =
# Ensure that our starting commit is really an ancestor of HEAD
git merge-base --is-ancestor 8a420dd06cb2b07748953255420556b0ded7d769 HEAD
{toxinidir}/ci/cz-check.sh
[testenv:config-check]
basepython = python3
deps = -r{toxinidir}/requirements-lint.txt
allowlist_externals = {toxinidir}/ci/config-check.py
commands =
{toxinidir}/ci/config-check.py {toxinidir}/config/
[testenv:doc8]
basepython = python3
deps = -r{toxinidir}/requirements-lint.txt
commands =
doc8 {toxinidir}/docs/source/
[testenv:docs]
description = Builds the docs site. Generated HTML files will be available in '{env:DOCS_BUILD}'.
deps = -r{toxinidir}/requirements-docs.txt
commands = sphinx-build -n -W --keep-going -b html {env:DOCS_SOURCE} {env:DOCS_BUILD}
[doc8]
ignore-path = docs/source/index.rst
max-line-length = 100