summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rwxr-xr-xtools/check10
-rwxr-xr-xtools/check-lint10
-rwxr-xr-xtools/check-style10
3 files changed, 30 insertions, 0 deletions
diff --git a/tools/check b/tools/check
new file mode 100755
index 0000000..269a23d
--- /dev/null
+++ b/tools/check
@@ -0,0 +1,10 @@
+#!/bin/bash -e
+
+cd "$(dirname "$0")/.."
+
+## tools/check
+##
+## Run checks on the project, exiting with a zero status if all checks pass.
+
+tools/check-lint
+tools/check-style
diff --git a/tools/check-lint b/tools/check-lint
new file mode 100755
index 0000000..eaebdf0
--- /dev/null
+++ b/tools/check-lint
@@ -0,0 +1,10 @@
+#!/bin/bash -e
+
+cd "$(dirname "$0")/.."
+
+## tools/check-lint
+##
+## Run lint checks on the project, exiting with a zero status if there are no lint
+## issues.
+
+exec pylint envdir
diff --git a/tools/check-style b/tools/check-style
new file mode 100755
index 0000000..adb2499
--- /dev/null
+++ b/tools/check-style
@@ -0,0 +1,10 @@
+#!/bin/bash -e
+
+cd "$(dirname "$0")/.."
+
+## tools/check-style
+##
+## Run style checks on the project, exiting with a zero status if there are no style
+## issues.
+
+exec black --check --diff envdir