Makefile/Rakefile add target/task for `pre-commit install`
MODIFY
Makefile
Makefile
@@ -18,6 +18,10 @@ check :
pre-commit run --all-files
.PHONY : check
+checkinstall :
+ pre-commit install
+.PHONY : checkinstall
+
checkupdate :
pre-commit autoupdate
.PHONY : checkupdate

MODIFY
Rakefile
Rakefile
@@ -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"

Makefile/Rakefile add target/task for `pre-commit install`