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

This commit is contained in:
John Bampton
2023-02-01 13:14:23 +10:00
parent d41ea96c2a
commit 2bb6eeb7c0
2 changed files with 9 additions and 0 deletions
+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"