Skip to content

Commit b53b34a

Browse files
authored
use local pre-commit hook for swift-format (#272)
1 parent 8a1730e commit b53b34a

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.pre-commit-config.yaml

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
repos:
2-
- repo: https://github.com/slessans/pre-commit-swift-format
3-
rev: "fd627de92bdf84a75c924ed95691336d14e94cf1"
2+
- repo: local
43
hooks:
54
- id: swift-format
6-
args: ["--configuration", ".swift-format"]
5+
name: swift-format
6+
language: system
7+
entry: swift-format --in-place
8+
files: '\.swift$'

0 commit comments

Comments
 (0)