pre-commit: introduce make lint
Also make the linters part of the github actions.
This commit is contained in:
parent
734c132500
commit
c408577b2d
11 changed files with 157 additions and 0 deletions
3
Makefile
3
Makefile
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue