Merge pull request #5919 from jbampton/make-rake-add-target

Makefile/Rakefile add target/task for `pre-commit install`
This commit is contained in:
Yukihiro "Matz" Matsumoto
2023-02-01 14:29:40 +09:00
committed by GitHub
2 changed files with 9 additions and 0 deletions
+4
View File
@@ -18,6 +18,10 @@ check :
pre-commit run --all-files
.PHONY : check
checkinstall :
pre-commit install
.PHONY : checkinstall
checkupdate :
pre-commit autoupdate
.PHONY : checkupdate
+5
View File
@@ -100,6 +100,11 @@ task :check do
sh "pre-commit run --all-files"
end
desc "install the pre-commit hooks"
task :checkinstall do
sh "pre-commit install"
end
desc "check the pre-commit hooks for updates"
task :checkupdate do
sh "pre-commit autoupdate"