mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-12-10 17:43:28 +00:00
run-linters: avoid searching scripts in build/
During package build the Python code is copied to the `build` directory. Ignore this directory when searching for Python scripts.
This commit is contained in:
parent
38ef3c506e
commit
32530e356d
@ -4,7 +4,7 @@ set -eu
|
||||
# Copyright 2023, Canonical Ltd.
|
||||
# SPDX-License-Identifier: GPL-3.0
|
||||
|
||||
PYTHON_SCRIPTS=$(grep -l -r '^#! */usr/bin/python3$' .)
|
||||
PYTHON_SCRIPTS=$(find . -maxdepth 1 -type f -exec grep -l '^#! */usr/bin/python3$' {} +)
|
||||
|
||||
run_black() {
|
||||
echo "Running black..."
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user