Browse Source

Limit linters to current working directory

Change-Id: I863ec2d534e527f13489fbd0c88ba1a0dc649d6f
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
changes/96/564596/1
Paul Belanger 4 years ago
parent
commit
cd4b14a94f
No known key found for this signature in database
GPG Key ID: 611A80832067AF38
  1. 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…
Cancel
Save