We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a2a2916 + a10eb63 commit 30dd7f8Copy full SHA for 30dd7f8
pylint_check.sh
@@ -1,9 +1,13 @@
1
#!/bin/bash
2
3
+SOURCE_LOCATION="$(dirname "$0")"
4
PYLINT="`type -p pylint-learn 2>/dev/null || type -p pylint3 2>/dev/null || type -p pylint`"
5
echo "Using pylint bin at $PYLINT"
6
+PYLINTRC=$SOURCE_LOCATION/.pylintrc
7
8
# Use * as the default argument to avoid descending into hidden directories like .git
9
+# don't use advanced functions of find without verifying they are present in
10
+# the archaic default version on macos
11
function find_pyfiles() {
12
if [ $# -eq 0 ]; then set -- *; fi
13
for f in $(find "$@" -type f -iname '*.py'); do
@@ -13,4 +17,4 @@ function find_pyfiles() {
17
done
14
18
}
15
19
16
-find_pyfiles "$@" | xargs "$PYLINT"
20
+find_pyfiles "$@" | xargs "$PYLINT" --rcfile "$PYLINTRC"
0 commit comments