summaryrefslogtreecommitdiffstats
path: root/ci/pytests/lint.sh
diff options
context:
space:
mode:
Diffstat (limited to 'ci/pytests/lint.sh')
-rwxr-xr-xci/pytests/lint.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/ci/pytests/lint.sh b/ci/pytests/lint.sh
new file mode 100755
index 0000000..b6c0bfc
--- /dev/null
+++ b/ci/pytests/lint.sh
@@ -0,0 +1,16 @@
+#!/bin/bash
+
+python3 -m flake8 --max-line-length=100 tests/pytests
+FLAKE8=$?
+
+ci/pytests/pylint-run.sh
+PYLINT=$?
+
+if [ $PYLINT -ne 0 ]; then
+ exit 1
+fi
+if [ $FLAKE8 -ne 0 ]; then
+ exit 1
+fi
+
+exit 0