Skip to content

Commit d031acf

Browse files
authored
Merge pull request #2467 from robscott/yamllint-venv
Adding venv for verify-yamllint
2 parents 335be6a + 3b3ccac commit d031acf

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

hack/verify-yamllint.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,14 @@ readonly KUBE_ROOT=$(dirname "${BASH_SOURCE}")/..
2323

2424
cd "${KUBE_ROOT}"
2525

26+
python3 -m venv .venv
27+
source .venv/bin/activate
28+
2629
# See configuration file in ${KUBE_ROOT}/.yamllint.yaml.
2730
pip3 install yamllint==$VERSION
2831

2932
yamllint -c .yamllint.yaml .
3033

34+
deactivate
35+
3136
# ex: ts=2 sw=2 et filetype=sh

0 commit comments

Comments
 (0)