Skip to content

Commit

Permalink
chore: update pre-commit config
Browse files Browse the repository at this point in the history
dnephin/pre-commit-golang is no longer being maintained. Switched to
tekwizely/pre-commit-golang instead.
  • Loading branch information
theseion authored and fzipi committed Jan 29, 2024
1 parent 54890c2 commit f3b2574
Showing 1 changed file with 25 additions and 10 deletions.
35 changes: 25 additions & 10 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,25 +1,40 @@
repos:
- repo: https://github.com/dnephin/pre-commit-golang
rev: v0.5.0
- repo: https://github.com/tekwizely/pre-commit-golang
rev: v1.0.0-rc.1
hooks:
- id: go-fmt
- id: go-vet
- id: go-imports
- id: go-cyclo
args: [-over=15]
- id: validate-toml
- id: no-go-testing
- id: golangci-lint
- id: go-critic
- id: go-unit-tests
- id: go-build
- id: go-test-mod
- id: go-build-mod
- id: go-mod-tidy
- id: my-cmd
name: go-cyclo
alias: go-cyclo
args: [ go, cyclo, -over=15]
- id: my-cmd
name: "Check files aren't using go's testing package"
entry: 'testing\.T'
files: 'test_.*\.go$'
language: 'pygrep'
description: >
Checks that no files are using `testing.T`, if you want developers to use
a different testing framework
- id: my-cmd
name: 'validate toml'
entry: 'tomlv'
files: '\.toml$'
language: 'system'
description: >
Runs `tomlv`, requires https://github.com/BurntSushi/toml/tree/master/cmd/tomlv"
- repo: https://github.com/gitleaks/gitleaks
rev: v8.16.3
rev: v8.18.1
hooks:
- id: gitleaks
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v4.5.0
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace

0 comments on commit f3b2574

Please sign in to comment.