tools/pylint.sh
#!/bin/bash
# This script can be used to run pylint
# Import utility functions
# shellcheck source=./tools/_functions.sh
source "$(dirname "${BASH_SOURCE[0]}")/_functions.sh"
require_installed
# Run pylint as a pre-commit hook
run_as_precommit "pylint --rcfile=pyproject.toml" "$@"
# Run pylint
echo "Starting code linting with pylint..." | print_info
# Explicitly include cli which does not have a .py ending
pylint . integreat_cms/integreat-cms-cli
echo "✔ Linting finished" | print_success