pre-commit: introduce make lint

Also make the linters part of the github actions.
This commit is contained in:
Florian Schüller 2024-12-20 18:36:31 +01:00 committed by Florian Schüller
parent 734c132500
commit c408577b2d
11 changed files with 157 additions and 0 deletions

View file

@ -85,6 +85,7 @@ help:
@echo " srpm: Build the source RPM"
@echo " scratch: Quick scratch build of RPM"
@echo " clean: Remove all built binaries"
@echo " lint: Run all known linters"
$(BUILDDIR)/:
mkdir -p "$@"
@ -186,3 +187,5 @@ release_artifacts: $(RPM_TARBALL_VERSIONED)
# Print the artifact path for Packit
echo "release_artifacts/$(shell basename $<)"
lint:
pre-commit run --all