tools: add lint-py.sh
[babeltrace.git] / tools / lint-py.sh
diff --git a/tools/lint-py.sh b/tools/lint-py.sh
new file mode 100755 (executable)
index 0000000..8881396
--- /dev/null
@@ -0,0 +1,15 @@
+#!/bin/bash
+#
+# SPDX-License-Identifier: GPL-2.0-only
+#
+# Copyright (C) 2023 EfficiOS, Inc.
+
+exit_code=0
+
+set -x
+
+black --diff --check . || exit_code=1
+flake8 || exit_code=1
+isort . --diff --check || exit_code=1
+
+exit $exit_code
This page took 0.022655 seconds and 4 git commands to generate.