Sylvain Desbureaux | e76075d | 2020-12-07 09:15:19 +0100 | [diff] [blame] | 1 | [tox] |
| 2 | minversion = 1.6 |
| 3 | envlist = |
Sylvain Desbureaux | 090941b | 2020-12-09 10:13:42 +0100 | [diff] [blame] | 4 | docs, |
| 5 | docs-linkcheck, |
Sylvain Desbureaux | e76075d | 2020-12-07 09:15:19 +0100 | [diff] [blame] | 6 | gitlint, |
| 7 | skipsdist=true |
| 8 | |
Sylvain Desbureaux | 090941b | 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 = |
| 20 | sphinx-build -W -b html -n -W -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/html |
| 21 | |
| 22 | [testenv:docs-linkcheck] |
| 23 | deps = -rdocs/requirements-docs.txt |
| 24 | commands = sphinx-build -W -b linkcheck -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/linkcheck |
| 25 | |
Sylvain Desbureaux | e76075d | 2020-12-07 09:15:19 +0100 | [diff] [blame] | 26 | [testenv:gitlint] |
| 27 | basepython = python3 |
| 28 | deps = |
| 29 | gitlint |
| 30 | |
| 31 | commands = |
| 32 | gitlint |
| 33 | |
Guillaume Lambert | fbb7f16 | 2021-02-17 12:09:47 +0100 | [diff] [blame] | 34 | [testenv:autopep8] |
| 35 | deps = autopep8 |
| 36 | commands = |
| 37 | autopep8 --max-line-length 120 --in-place --recursive kubernetes/ TOSCA/ docs/ |
| 38 | |
| 39 | [testenv:pylint] |
| 40 | deps = pylint |
| 41 | whitelist_externals = find |
| 42 | commands = |
| 43 | 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 \{\} + |
| 44 | |