forked from eumel8/ansible-otc
-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
41 lines (36 loc) · 1.04 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
[tox]
minversion = 2.0
skipsdist = True
envlist = docs,lint
[testenv]
usedevelop = True
setenv = VIRTUAL_ENV={envdir}
install_command = pip install -U {opts} {packages}
deps = -r{toxinidir}/requirements.txt
[testenv:venv]
commands = {posargs}
[testenv:docs]
deps = -r{toxinidir}/requirements.txt
commands=
# role documentation is raw included here
# it's possible to clone the roles and build doc with local includes
# ansible-galaxy install -f -r ansible-role-requirements.yml -p roles
python setup.py build_sphinx
sphinx-build -M text doc/source doc/build
sphinx-build -M singlehtml doc/source doc/build
sphinx-build -M epub doc/source doc/build
sphinx-build -M latexpdf doc/source doc/build
[testenv:lint]
commands=
yamllint playbooks
deps=yamllint
[doc8]
# File extensions to check
extensions = .rst, .yaml
# Maximal line length should be 80 but we have some overlong lines.
# Let's not get far more in.
max-line-length = 80
# Disable some doc8 checks:
# D000: Check RST validity
# - cannot handle "none" for code-block directive
#ignore = D000