mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-04-19 22:31:07 +00:00
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 <benjamin.drung@canonical.com>
This commit is contained in:
parent
932166484b
commit
79d24c9df1
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user