Limit linters to current working directory

Change-Id: I5a5775a66832b197eb242f933a1d483809b0f7f7
This commit is contained in:
Jesse Pretorius 2018-05-01 11:58:53 +01:00
parent 5367661ac3
commit 4317207e2a
1 changed files with 2 additions and 2 deletions

View File

@ -29,8 +29,8 @@ commands =
# PEP8 Lint Check
flake8
# Ansible Lint Check
bash -c "find . -type f -regex '.*.y[a]?ml' -print0 | xargs -t -n1 -0 \
ansible-lint"
bash -c "find . -not -path '*/\.*' -type f -regex '.*.y[a]?ml' -print0 | \
xargs -t -n1 -0 ansible-lint"
# Ansible Syntax Check
bash -c "find tests -type f -regex '.*.y[a]?ml' -print | xargs -t -n1 \
ansible-playbook --syntax-check -i tests/inventory \