Skip to content

Commit 363d41a

Browse files
committed
do not descend into .git, etc.
1 parent edc84f0 commit 363d41a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

pylint_check.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
PYLINT="`type -p pylint3 2>/dev/null || type -p pylint`"
44
echo "Using pylint bin at $PYLINT"
55

6+
# Use * as the default argument to avoid descending into hidden directories like .git
67
function find_pyfiles() {
7-
if [ $# -eq 0 ]; then set -- .; fi
8+
if [ $# -eq 0 ]; then set -- *; fi
89
for f in $(find "$@" -type f -iname '*.py'); do
910
if [ ! -e "$(dirname $f)/.circuitpython.skip" ]; then
1011
echo "$f"

0 commit comments

Comments
 (0)