From 5468cb8237fe37555ffdf85fbb20226d41bde0f9 Mon Sep 17 00:00:00 2001 From: Dylan Whichard Date: Mon, 14 May 2018 14:14:16 -0400 Subject: [PATCH] Fix skip file checking --- pylint_check | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/pylint_check b/pylint_check index 85c1e124..966df3e4 100755 --- a/pylint_check +++ b/pylint_check @@ -1,5 +1,11 @@ #!/bin/bash -set -x +function find_pyfiles() { + for f in $(find . -type f -iname '*.py'); do + if [ ! -e "$(dirname $f)/.circuitpython.skip" ]; then + echo "$f" + fi + done +} -find . -type d '!' -exec test -e "{}/.circuitpython.skip" ';' | xargs pylint +find_pyfiles | xargs pylint