#!/bin/sh set -eu # Copyright 2023, Canonical Ltd. # SPDX-License-Identifier: GPL-3.0 PYTHON_SCRIPTS=$(grep -l -r '^#! */usr/bin/python3$' .) echo "Running black..." black --check --diff . $PYTHON_SCRIPTS echo "Running isort..." isort --check-only --diff . echo "Running flake8..." flake8 --max-line-length=99 --ignore=E203,W503 . $PYTHON_SCRIPTS echo "Running pylint..." pylint $(find * -name '*.py') $PYTHON_SCRIPTS