12 ignore-path-errors=docs/helm-search.txt;D001
15 basepython = python3.8
17 -r{toxinidir}/requirements.txt
18 -chttps://releases.openstack.org/constraints/upper/yoga
19 -chttps://git.onap.org/doc/plain/etc/upper-constraints.onap.txt
24 basepython = python3.8
26 -r{toxinidir}/requirements.txt
27 -chttps://releases.openstack.org/constraints/upper/yoga
28 -chttps://git.onap.org/doc/plain/etc/upper-constraints.onap.txt
29 allowlist_externals = sudo
31 sudo apt install graphviz
32 sphinx-build -q -W -b html -n -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/html
34 [testenv:docs-linkcheck]
35 basepython = python3.8
37 -r{toxinidir}/requirements.txt
38 -chttps://releases.openstack.org/constraints/upper/yoga
39 -chttps://git.onap.org/doc/plain/etc/upper-constraints.onap.txt
40 allowlist_externals = sudo
42 sudo apt install graphviz
43 sphinx-build -q -W -b linkcheck -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/linkcheck
46 basepython = python3.8
51 -r{toxinidir}/requirements.txt
52 -chttps://releases.openstack.org/constraints/upper/yoga
53 -chttps://git.onap.org/doc/plain/etc/upper-constraints.onap.txt
54 changedir={toxinidir}/docs
56 sudo apt install graphviz
57 wget -nv https://git.onap.org/doc/plain/docs/spelling_wordlist.txt -O spelling_wordlist.txt
58 sphinx-build -b spelling -d {envtmpdir}/doctrees . _build/spelling
61 basepython = python3.8
63 -r{toxinidir}/requirements.txt
64 -chttps://releases.openstack.org/constraints/upper/yoga
65 -chttps://git.onap.org/doc/plain/etc/upper-constraints.onap.txt
69 [testenv:checkbashisms]
72 {toxinidir}/.ci/check-bashisms.sh
74 {toxinidir}/.ci/check-bashisms.sh
79 allowlist_externals = find
81 find . -not -path '*/\.*' -name *.sh -exec shellcheck \{\} +
84 basepython = python3.8
86 -r{toxinidir}/requirements.txt
87 -chttps://releases.openstack.org/constraints/upper/yoga
88 -chttps://git.onap.org/doc/plain/etc/upper-constraints.onap.txt
90 autopep8 --max-line-length 120 --in-place --recursive kubernetes/ TOSCA/ docs/
93 basepython = python3.8
95 -r{toxinidir}/requirements.txt
96 -chttps://releases.openstack.org/constraints/upper/yoga
97 -chttps://git.onap.org/doc/plain/etc/upper-constraints.onap.txt
98 allowlist_externals = find
100 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 \{\} +
102 [testenv:pre-commit-install]
107 pre-commit install --hook-type commit-msg
109 [testenv:pre-commit-uninstall]
114 pre-commit uninstall --hook-type commit-msg
121 pre-commit run --all-files --show-diff-on-failure
122 pre-commit run gitlint --hook-stage commit-msg --commit-msg-filename .git/COMMIT_EDITMSG
123 # Gitlint only proposes a pre-commit configuration for the commit-msg stage but none for the commit stage.
124 # Its default arguments --passed and --msg-filename are different from CI recommandations.
125 # As a result, the line above is always skipped in jenkins CI since there cannot be a .git/COMMIT_EDITMSG file.
126 # A dedicated gitlint profile for CI is proposed above. Also to behave fine locally, this profile must have access
127 # to the HOME variable so that Gitlint can retrieve Git user settings.
129 [testenv:pre-commit-autoupdate]
133 pre-commit autoupdate