Limit linters to current working directory
Change-Id: I96133a07226a9a3ed09d0aa000c371f79b3f3cc1 Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
parent
d1cd312d12
commit
1bf2c07938
4
tox.ini
4
tox.ini
@ -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 \
|
||||
|
Loading…
x
Reference in New Issue
Block a user