From 79d24c9df1c3190814d3bfc41f0002a35492b29f Mon Sep 17 00:00:00 2001 From: Benjamin Drung Date: Mon, 30 Jan 2023 19:29:51 +0100 Subject: [PATCH] fix: Check Python scripts with flake8 again Commit ae74f71a1e9d4be043162b19d23f2d44c964c771 removed the flake8 unittest and commit 3428a65b1cd644445f55ad8ae65ece5f73d7acb5 added running flake8 again, but only for files named `*.py`. Check also all Python scripts with a Python shebang. Signed-off-by: Benjamin Drung --- run-linters | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/run-linters b/run-linters index 4f37218..e9bfc9d 100755 --- a/run-linters +++ b/run-linters @@ -4,5 +4,7 @@ set -eu # Copyright 2023, Canonical Ltd. # SPDX-License-Identifier: GPL-3.0 +PYTHON_SCRIPTS=$(grep -l -r '^#! */usr/bin/python3$' .) + echo "Running flake8..." -flake8 --max-line-length=99 +flake8 --max-line-length=99 . $PYTHON_SCRIPTS