Skip to content

Commit 675d167

Browse files
committed
Put pre-commit command in a Makefile
1 parent fef7e7c commit 675d167

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.github/workflows/check.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ jobs:
2323
run: "pip install pre-commit"
2424

2525
- name: "Run checks with pre-commit"
26-
run: "pre-commit run --all-files --show-diff-on-failure --color always"
26+
run: "make precommit"

Makefile

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.PHONY: precommit
2+
precommit:
3+
pre-commit run --all-files --show-diff-on-failure --color always

0 commit comments

Comments
 (0)