Skip to content

Commit 5468cb8

Browse files
committed
Fix skip file checking
1 parent a7dccb1 commit 5468cb8

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

pylint_check

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
#!/bin/bash
22

3-
set -x
3+
function find_pyfiles() {
4+
for f in $(find . -type f -iname '*.py'); do
5+
if [ ! -e "$(dirname $f)/.circuitpython.skip" ]; then
6+
echo "$f"
7+
fi
8+
done
9+
}
410

5-
find . -type d '!' -exec test -e "{}/.circuitpython.skip" ';' | xargs pylint
11+
find_pyfiles | xargs pylint

0 commit comments

Comments
 (0)