Skip to content

Commit

Permalink
Use golines-gofumpt pre-commit hook
Browse files Browse the repository at this point in the history
golines wraps long lines with gofumpt as a base formatter.
  • Loading branch information
schmir committed Aug 22, 2023
1 parent 50a4fc6 commit 3fbaf56
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ repos:
- id: eslint

- repo: https://github.com/shutter-network/pre-commit-go-hooks
rev: "7a66f5523b34139615a0c95f2b8a441dbc1778dc"
rev: "9f4fc1448722928abeede7bb06c96fb46039e6dd"
hooks:
- id: shfmt
args: ["-i", "4"]
Expand All @@ -83,7 +83,7 @@ repos:
^rolling-shutter/p2pmsg/.*\.pb\.go$|
^rolling-shutter/shcryptowasm/.*_wasm\.go$
)
- id: gofumpt
- id: golines-gofumpt
exclude: |
(?x)(
^.*\.gen\.go$|
Expand Down

0 comments on commit 3fbaf56

Please sign in to comment.