Skip to content

Commit

Permalink
Add pre-commit hooks for the repo
Browse files Browse the repository at this point in the history
This introduces pre-commit configurations to run golangci before any
commits occur.  Goal is to decrease the number of "fixup linter"
type commit messages in the repo.
  • Loading branch information
bbockelm committed Sep 2, 2023
1 parent 6fc6901 commit 188af9d
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- repo: https://github.com/golangci/golangci-lint
rev: v1.54.2
hooks:
- id: golangci-lint

0 comments on commit 188af9d

Please sign in to comment.