From 4317207e2ad182f4cdf35b8f69b17d12b786bf39 Mon Sep 17 00:00:00 2001 From: Jesse Pretorius Date: Tue, 1 May 2018 11:58:53 +0100 Subject: [PATCH] Limit linters to current working directory Change-Id: I5a5775a66832b197eb242f933a1d483809b0f7f7 --- tox.ini | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tox.ini b/tox.ini index be76c31..03ba7dc 100644 --- a/tox.ini +++ b/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 \