Add `lint` target to the Makefile
Add `lint` task to the Rakefile
Runs `pre-commit run --all-files`
MODIFY
Makefile
Makefile
@@ -13,3 +13,7 @@ test : all
clean :
$(RAKE) clean
.PHONY : clean
+
+lint :
+ pre-commit run --all-files
+.PHONY : lint

MODIFY
Rakefile
Rakefile
@@ -95,3 +95,7 @@ task :install_bin => :all do
end
end
end
+
+task :lint do
+ sh "pre-commit run --all-files"
+end

Add `lint` target to the Makefile

Add `lint` task to the Rakefile

Runs `pre-commit run --all-files`