Add lint target to the Makefile

Add `lint` task to the Rakefile

Runs `pre-commit run --all-files`
This commit is contained in:
John Bampton
2022-09-15 19:25:57 +10:00
parent 74b8bbd8b3
commit b466271f16
2 changed files with 8 additions and 0 deletions
+4
View File
@@ -13,3 +13,7 @@ test : all
clean :
$(RAKE) clean
.PHONY : clean
lint :
pre-commit run --all-files
.PHONY : lint
+4
View File
@@ -95,3 +95,7 @@ task :install_bin => :all do
end
end
end
task :lint do
sh "pre-commit run --all-files"
end