Sylvain Desbureaux | 3c393e5 | 2020-12-07 09:15:19 +0100 | [diff] [blame] | 1 | [tox] |
| 2 | minversion = 1.6 |
| 3 | envlist = |
Sylvain Desbureaux | ec07bca | 2020-12-09 10:13:42 +0100 | [diff] [blame] | 4 | docs, |
| 5 | docs-linkcheck, |
Sylvain Desbureaux | 3c393e5 | 2020-12-07 09:15:19 +0100 | [diff] [blame] | 6 | gitlint, |
| 7 | skipsdist=true |
| 8 | |
Sylvain Desbureaux | ec07bca | 2020-12-09 10:13:42 +0100 | [diff] [blame] | 9 | [doc8] |
| 10 | ignore-path-errors=docs/helm-search.txt;D001 |
| 11 | |
| 12 | [testenv:doc8] |
| 13 | deps = -rdocs/requirements-docs.txt |
| 14 | commands = |
| 15 | doc8 docs/ |
| 16 | |
| 17 | [testenv:docs] |
| 18 | deps = -rdocs/requirements-docs.txt |
| 19 | commands = |
Guillaume Lambert | facc2a9 | 2021-02-02 10:51:46 +0100 | [diff] [blame] | 20 | sphinx-build -W -b html -n -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/html |
Sylvain Desbureaux | ec07bca | 2020-12-09 10:13:42 +0100 | [diff] [blame] | 21 | |
| 22 | [testenv:docs-linkcheck] |
| 23 | deps = -rdocs/requirements-docs.txt |
Sylvain Desbureaux | 03ad4d0 | 2020-12-11 08:39:54 +0100 | [diff] [blame] | 24 | commands = sphinx-build -W -b linkcheck -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/linkcheck |
Sylvain Desbureaux | ec07bca | 2020-12-09 10:13:42 +0100 | [diff] [blame] | 25 | |
Guillaume Lambert | b825e91 | 2021-02-01 21:22:33 +0100 | [diff] [blame] | 26 | [testenv:spelling] |
| 27 | #basepython = python3 |
| 28 | whitelist_externals = wget |
| 29 | deps = |
| 30 | -rdocs/requirements-docs.txt |
| 31 | sphinxcontrib-spelling |
| 32 | PyEnchant |
| 33 | changedir={toxinidir}/docs |
| 34 | commands = |
Guillaume Lambert | 089ba21 | 2021-02-10 11:48:39 +0100 | [diff] [blame] | 35 | wget -nv https://git.onap.org/doc/plain/docs/spelling_wordlist.txt -O spelling_wordlist.txt |
Guillaume Lambert | b825e91 | 2021-02-01 21:22:33 +0100 | [diff] [blame] | 36 | sphinx-build -b spelling -d {envtmpdir}/doctrees . _build/spelling |
| 37 | |
Sylvain Desbureaux | 3c393e5 | 2020-12-07 09:15:19 +0100 | [diff] [blame] | 38 | [testenv:gitlint] |
| 39 | basepython = python3 |
| 40 | deps = |
| 41 | gitlint |
| 42 | |
| 43 | commands = |
| 44 | gitlint |
| 45 | |
Guillaume Lambert | d8eab71 | 2021-03-08 21:49:28 +0100 | [diff] [blame] | 46 | [testenv:checkbashisms] |
| 47 | deps = |
| 48 | whitelist_externals = sh |
| 49 | find |
| 50 | checkbashisms |
| 51 | commands = |
| 52 | sh -c 'which checkbashisms>/dev/null || sudo yum install devscripts-minimal || sudo apt-get install devscripts \ |
| 53 | || (echo "checkbashisms command not found - please install it (e.g. sudo apt-get install devscripts | \ |
| 54 | yum install devscripts-minimal )" >&2 && exit 1)' |
| 55 | find . -not -path '*/\.*' -name *.sh -exec checkbashisms -f \{\} + |
| 56 | |
Guillaume Lambert | 056b2d4 | 2021-02-17 12:09:47 +0100 | [diff] [blame] | 57 | [testenv:autopep8] |
| 58 | deps = autopep8 |
| 59 | commands = |
| 60 | autopep8 --max-line-length 120 --in-place --recursive kubernetes/ TOSCA/ docs/ |
| 61 | |
| 62 | [testenv:pylint] |
| 63 | deps = pylint |
| 64 | whitelist_externals = find |
| 65 | commands = |
| 66 | find kubernetes/ TOSCA/ docs/ -name *.py -exec pylint --max-line-length=120 --disable=missing-docstring --method-rgx="(([a-z_][a-zA-Z0-9_]{2,})|(_[a-z0-9_]*)|(__[a-zA-Z][a-zA-Z0-9_]+__))$" --variable-rgx="[a-zA-Z_][a-zA-Z0-9_]{1,30}$" --reports=y --score=y --output-format=colorized \{\} + |
| 67 | |