Skip to content

Commit 1a8779b

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

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/check.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@ jobs:
2222
- name: "Install pre-commit"
2323
run: "pip install pre-commit"
2424

25-
- name: "Run checks with pre-commit"
26-
run: "pre-commit run --all-files --show-diff-on-failure --color always"
25+
- name: "Run lint and format checks"
26+
run: "make lint"

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.PHONY: lint
2+
lint:
3+
pre-commit run --all-files --show-diff-on-failure --color always

0 commit comments

Comments
 (0)