Skip to content

Commit b4536d8

Browse files
[CI] Speed up githooks (#889)
1 parent 769c64e commit b4536d8

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

lefthook.yml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,21 @@
11
pre-commit:
2-
parallel: true
2+
parallel: false
33
jobs:
4-
- run: bundle exec fastlane run_swift_format
4+
- run: mint run swiftformat --config .swiftformat --exclude '**/Generated', 'Sources/StreamChatSwiftUI/StreamNuke', 'Sources/StreamChatSwiftUI/StreamSwiftyGif' {staged_files}
5+
glob: "*.{swift}"
6+
stage_fixed: true
7+
skip:
8+
- merge
9+
- rebase
10+
11+
- run: mint run swiftlint lint --config .swiftlint.yml --fix --progress --quiet --reporter json {staged_files}
12+
glob: "*.{swift}"
13+
stage_fixed: true
14+
skip:
15+
- merge
16+
- rebase
17+
18+
- run: mint run swiftlint lint --config .swiftlint.yml --strict --progress --quiet --reporter json {staged_files}
519
glob: "*.{swift}"
620
stage_fixed: true
721
skip:

0 commit comments

Comments
 (0)