summaryrefslogtreecommitdiffstats
path: root/ci/pytests/pylint-run.sh
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xci/pytests/pylint-run.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/ci/pytests/pylint-run.sh b/ci/pytests/pylint-run.sh
new file mode 100755
index 0000000..159a830
--- /dev/null
+++ b/ci/pytests/pylint-run.sh
@@ -0,0 +1,9 @@
+#!/usr/bin/env bash
+set -e
+
+# Find Python modules and standalone Python scripts
+FILES=$(find ./tests/pytests \
+ -type d -exec test -e '{}/__init__.py' \; -print -prune -o \
+ -name '*.py' -print)
+
+python3 -m pylint -j 0 --rcfile ./tests/pytests/pylintrc ${FILES}