Skip to content

Commit

Permalink
feat(pre-commit): update pre-commit to use my hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
mrsimonemms committed Aug 18, 2023
1 parent dc7250b commit 6605ab5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 16 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/mrsimonemms/pre-commit-hooks
rev: v1.0.0
rev: v1.1.0
hooks:
- id: license-eye
- repo: https://github.com/pre-commit/pre-commit-hooks
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,7 @@
},
"postCreateCommand": {
"bootstrap": "ln -s $PWD/.cobra.yaml $HOME/.cobra.yaml && if [ ! -f \"go.mod\" ]; then go mod init \"{{ cookiecutter.repo }}\"; fi && if [ ! -f \"main.go\" ]; then cobra-cli init && go mod tidy; fi",
"cookieninja-cruft": "pip install cruft",
"errcheck": "go install github.com/kisielk/errcheck@latest",
"gofumpt": "go install mvdan.cc/gofumpt@latest",
"goimports": "go install golang.org/x/tools/cmd/goimports@latest",
"golangci-lint": "go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest",
"staticcheck": "go install honnef.co/go/tools/cmd/staticcheck@latest"
"cookieninja-cruft": "pip install cruft"
},
"containerEnv": {
"GIT_REPO": "{{ cookiecutter.repo }}"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
repos:
- repo: https://github.com/mrsimonemms/pre-commit-hooks
rev: v1.0.0
rev: v1.1.0
hooks:
- id: license-eye
- id: go-fmt-import
- id: go-vet
- id: gofumpt
- id: go-err-check
- id: go-static-check
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
Expand Down Expand Up @@ -36,11 +41,3 @@ repos:
rev: v1.53.2
hooks:
- id: golangci-lint
- repo: https://github.com/Bahjat/pre-commit-golang
rev: v1.0.3
hooks:
- id: go-fmt-import
- id: go-vet
- id: gofumpt
- id: go-err-check
- id: go-static-check

0 comments on commit 6605ab5

Please sign in to comment.