mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-03-13 08:01:09 +00:00
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>
11 lines
216 B
Bash
Executable File
11 lines
216 B
Bash
Executable File
#!/bin/sh
|
|
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 . $PYTHON_SCRIPTS
|