Skip to content

Commit 3c61fe4

Browse files
authored
Add pre-commit hook (#73)
1 parent 42309e7 commit 3c61fe4

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ jobs:
7373
command: check
7474
arguments: --all-features
7575
taplo:
76-
name: Taplo
76+
name: make taplo-check
7777
runs-on: ubuntu-20.04
7878
timeout-minutes: 60
7979
steps:

.pre-commit-config.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# See https://pre-commit.com for more information
2+
repos:
3+
- repo: local
4+
hooks:
5+
- id: make-fmt
6+
name: make-fmt
7+
language: system
8+
entry: make fmt
9+
pass_filenames: false
10+
- id: make-taplo
11+
name: make-taplo
12+
language: system
13+
entry: make taplo
14+
pass_filenames: false

0 commit comments

Comments
 (0)