/
tox.ini
42 lines (37 loc) · 1.21 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
[tox]
envlist =
sphinx-{base,idfdev,idfint,idfprod,int,nts,stable,summit,tucsonteststand}
isolated_build = True
[testenv]
basepython = python
skip_install = True
deps =
-rrequirements/main.txt
setenv =
base: RSPDOC_ENV = base
idfdev: RSPDOC_ENV = idfdev
idfint: RSPDOC_ENV = idfint
idfprod: RSPDOC_ENV = idfprod
int: RSPDOC_ENV = int
nts: RSPDOC_ENV = nts
stable: RSPDOC_ENV = stable
summit: RSPDOC_ENV = summit
tucsonteststand: RSPDOC_ENV = tucsonteststand
[testenv:sphinx-{base,idfdev,idfint,idfprod,int,nts,stable,summit,tucsonteststand}]
commands =
sphinx-build -t {env:RSPDOC_ENV} -b html -d _build/doctrees/{env:RSPDOC_ENV} -n -W -c . src _build/html/{env:RSPDOC_ENV}
[testenv:linkcheck-{base,idfdev,idfint,idfprod,int,nts,stable,summit,tucsonteststand}]
commands =
sphinx-build -t {env:RSPDOC_ENV} -b linkcheck -d _build/doctrees/{env:RSPDOC_ENV} -n -W -c . src _build/linkcheck/{env:RSPDOC_ENV}
[testenv:precommit]
description = Lint code and configurations by running pre-commit.
skip_install = true
deps =
pre-commit
commands = pre-commit run --all-files
[testenv:typing]
deps =
-rrequirements/main.txt
-rrequirements/dev.txt
commands =
mypy rsplint.py