-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
45 lines (39 loc) · 1.26 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,sphinx-{base,idfdev,idfint,idfprod,summit,tucson-teststand,usdfdev,usdfprod}
isolated_build = True
[testenv]
basepython = python
setenv =
base: PHALANX_ENV = base
idfdev: PHALANX_ENV = idfdev
idfint: PHALANX_ENV = idfint
idfprod: PHALANX_ENV = idfprod
summit: PHALANX_ENV = summit
tucson-teststand: PHALANX_ENV = tucson-teststand
usdfdev: PHALANX_ENV = usdfdev
usdfprod: PHALANX_ENV = usdfprod
[testenv:sphinx-{base,idfdev,idfint,idfprod,summit,tucson-teststand,usdfdev,usdfprod}]
commands =
sphinx-build -t {env:PHALANX_ENV} -b html -d _build/doctrees/{env:PHALANX_ENV} -n -W -c . docs _build/html/{env:PHALANX_ENV}
[testenv:linkcheck-{base,idfdev,idfint,idfprod,summit,tucson-teststand,usdfdev,usdfprod}]
commands =
sphinx-build -t {env:PHALANX_ENV} -b linkcheck -d _build/doctrees/{env:PHALANX_ENV} -n -W -c . docs _build/linkcheck/{env:PHALANX_ENV}
[testenv:py]
description = Run pytest.
extras =
dev
commands =
pytest {posargs}
[testenv:typing]
description = Run mypy.
extras =
dev
commands =
mypy src/rspdocs tests --explicit-package-bases
[testenv:lint]
description = Lint code and configurations by running pre-commit.
skip_install = true
deps =
pre-commit
commands = pre-commit run --all-files