From b466271f167672b31593eb652f6ffc8b8b37a56f Mon Sep 17 00:00:00 2001 From: John Bampton Date: Thu, 15 Sep 2022 19:25:57 +1000 Subject: [PATCH] Add `lint` target to the Makefile Add `lint` task to the Rakefile Runs `pre-commit run --all-files` --- Makefile | 4 ++++ Rakefile | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/Makefile b/Makefile index 6e20d9dbf..490b22663 100644 --- a/Makefile +++ b/Makefile @@ -13,3 +13,7 @@ test : all clean : $(RAKE) clean .PHONY : clean + +lint : + pre-commit run --all-files +.PHONY : lint diff --git a/Rakefile b/Rakefile index 9396b8cd1..1bedd230c 100644 --- a/Rakefile +++ b/Rakefile @@ -95,3 +95,7 @@ task :install_bin => :all do end end end + +task :lint do + sh "pre-commit run --all-files" +end