Skip to content

Commit

Permalink
pre-commit: update hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed Oct 7, 2024
1 parent 71e7937 commit 5c5cb63
Show file tree
Hide file tree
Showing 12 changed files with 43 additions and 19 deletions.
19 changes: 16 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,28 @@ repos:
hooks:
- id: trailing-whitespace
exclude_types: [markdown]
exclude: LICENSE|def.proto
exclude: LICENSE
- id: end-of-file-fixer
exclude: LICENSE|def.proto
exclude: LICENSE
- id: check-yaml
- id: check-added-large-files

- repo: https://github.com/tekwizely/pre-commit-golang
rev: v1.0.0-rc.1
hooks:
- id: go-imports-repo
args: ["-w"]
args:
- "-local"
- "go.mau.fi/whatsmeow"
- "-w"
- id: go-vet-repo-mod
# TODO enable this
#- id: go-staticcheck-repo-mod
- id: go-mod-tidy

- repo: https://github.com/beeper/pre-commit-go
rev: v0.3.1
hooks:
# TODO enable this
#- id: zerolog-ban-msgf
- id: zerolog-use-stringer
5 changes: 3 additions & 2 deletions proto/waArmadilloApplication/WAArmadilloApplication.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion proto/waArmadilloXMA/WAArmadilloXMA.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion proto/waChatLockSettings/WAProtobufsChatLockSettings.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion proto/waConsumerApplication/WAConsumerApplication.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions proto/waE2E/WAWebProtobufsE2E.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions proto/waHistorySync/WAWebProtobufsHistorySync.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion proto/waMediaTransport/WAMediaTransport.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion proto/waMsgApplication/WAMsgApplication.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion proto/waMsgTransport/WAMsgTransport.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions proto/waSyncAction/WASyncAction.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions proto/waWeb/WAWebProtobufsWeb.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5c5cb63

Please sign in to comment.