forked from openstack-kr/contributhon-2020
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
50 lines (43 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
43
44
45
46
47
48
49
50
[tox]
minversion = 2.0
envlist = lint,docs
[testenv]
usedevelop = False
install_command = pip install {opts} {packages}
deps =
-r{toxinidir}/test-requirements.txt
-r{toxinidir}/requirements.txt
sitepackages = False
whitelist_externals =
rm
make
[testenv:lint]
commands =
doc8 doc
[doc8]
# Settings for doc8:
# Ignore target directories and autogenerated files
ignore-path = doc/*/target,doc/*/build*
# File extensions to use
extensions = .rst,.txt
# Maximal line length should be 79 but we have some overlong lines.
# Let's not get far more in.
max-line-length = 79
# Disable some doc8 checks:
# D000: Check RST validity (cannot handle the "linenos" directive)
# D001: Line too long
# D002: Trailing Whitespace (not compatible with DOS/Windows files)
# D004: Found literal carriage return (not compatible with DOS/Windows files)
ignore = D000,D001,D002,D004
[testenv:venv]
commands = {posargs}
[testenv:docs]
commands =
sphinx-build -a -E -W -d doc/build/doctrees -b html doc/source doc/build/html
[testenv:html]
commands =
sphinx-build -a -E -W -d doc/build/doctrees -b html doc/source doc/build/html
[flake8]
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,tools
show-source = True
enable-extensions = H203,H106