12 ignore-path-errors=docs/helm-search.txt;D001
15 basepython = python3.8
17 -r{toxinidir}/requirements.txt
18 -chttps://raw.githubusercontent.com/openstack/requirements/stable/yoga/upper-constraints.txt
19 -chttps://git.onap.org/doc/plain/etc/upper-constraints.onap.txt
24 basepython = python3.8
26 -r{toxinidir}/requirements.txt
27 -chttps://raw.githubusercontent.com/openstack/requirements/stable/yoga/upper-constraints.txt
28 -chttps://git.onap.org/doc/plain/etc/upper-constraints.onap.txt
30 sphinx-build -q -W -b html -n -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/html
32 [testenv:docs-linkcheck]
33 basepython = python3.8
35 -r{toxinidir}/requirements.txt
36 -chttps://raw.githubusercontent.com/openstack/requirements/stable/yoga/upper-constraints.txt
37 -chttps://git.onap.org/doc/plain/etc/upper-constraints.onap.txt
38 commands = sphinx-build -q -W -b linkcheck -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/linkcheck
41 basepython = python3.8
42 whitelist_externals = wget
44 -r{toxinidir}/requirements.txt
45 -chttps://raw.githubusercontent.com/openstack/requirements/stable/yoga/upper-constraints.txt
46 -chttps://git.onap.org/doc/plain/etc/upper-constraints.onap.txt
47 changedir={toxinidir}/docs
49 wget -nv https://git.onap.org/doc/plain/docs/spelling_wordlist.txt -O spelling_wordlist.txt
50 sphinx-build -b spelling -d {envtmpdir}/doctrees . _build/spelling
53 basepython = python3.8
55 -r{toxinidir}/requirements.txt
56 -chttps://raw.githubusercontent.com/openstack/requirements/stable/yoga/upper-constraints.txt
57 -chttps://git.onap.org/doc/plain/etc/upper-constraints.onap.txt
61 [testenv:checkbashisms]
64 {toxinidir}/.ci/check-bashisms.sh
66 {toxinidir}/.ci/check-bashisms.sh
71 whitelist_externals = find
73 find . -not -path '*/\.*' -name *.sh -exec shellcheck \{\} +
76 basepython = python3.8
78 -r{toxinidir}/requirements.txt
79 -chttps://raw.githubusercontent.com/openstack/requirements/stable/yoga/upper-constraints.txt
80 -chttps://git.onap.org/doc/plain/etc/upper-constraints.onap.txt
82 autopep8 --max-line-length 120 --in-place --recursive kubernetes/ TOSCA/ docs/
85 basepython = python3.8
87 -r{toxinidir}/requirements.txt
88 -chttps://raw.githubusercontent.com/openstack/requirements/stable/yoga/upper-constraints.txt
89 -chttps://git.onap.org/doc/plain/etc/upper-constraints.onap.txt
90 whitelist_externals = find
92 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 \{\} +
94 [testenv:pre-commit-install]
99 pre-commit install --hook-type commit-msg
101 [testenv:pre-commit-uninstall]
106 pre-commit uninstall --hook-type commit-msg
113 pre-commit run --all-files --show-diff-on-failure
114 pre-commit run gitlint --hook-stage commit-msg --commit-msg-filename .git/COMMIT_EDITMSG
115 # Gitlint only proposes a pre-commit configuration for the commit-msg stage but none for the commit stage.
116 # Its default arguments --passed and --msg-filename are different from CI recommandations.
117 # As a result, the line above is always skipped in jenkins CI since there cannot be a .git/COMMIT_EDITMSG file.
118 # A dedicated gitlint profile for CI is proposed above. Also to behave fine locally, this profile must have access
119 # to the HOME variable so that Gitlint can retrieve Git user settings.
121 [testenv:pre-commit-autoupdate]
125 pre-commit autoupdate