Skip to content

Commit

Permalink
Sort hook ids in each pre-commit hook entry
Browse files Browse the repository at this point in the history
Ensure that all hook ids are sorted alphabetically in each hook entry
in our pre-commit configuration.
  • Loading branch information
mcdonnnj committed Oct 29, 2024
1 parent f0e55b3 commit 1d285f2
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,25 +68,25 @@ repos:
- repo: https://github.com/TekWizely/pre-commit-golang
rev: v1.0.0-rc.1
hooks:
# Style Checkers
- id: go-critic
# StaticCheck
- id: go-staticcheck-repo-mod
# Go Build
- id: go-build-repo-mod
# Style Checkers
- id: go-critic
# goimports
- id: go-imports-repo
args:
# Write changes to files
- -w
# Go Mod Tidy
- id: go-mod-tidy-repo
# GoSec
- id: go-sec-repo-mod
# StaticCheck
- id: go-staticcheck-repo-mod
# Go Test
- id: go-test-repo-mod
# Go Vet
- id: go-vet-repo-mod
# GoSec
- id: go-sec-repo-mod
# goimports
- id: go-imports-repo
args:
# Write changes to files
- -w
# Nix hooks
- repo: https://github.com/nix-community/nixpkgs-fmt
rev: v1.3.0
Expand Down Expand Up @@ -201,5 +201,5 @@ repos:
- repo: https://github.com/cisagov/pre-commit-packer
rev: v0.1.0
hooks:
- id: packer_validate
- id: packer_fmt
- id: packer_validate

0 comments on commit 1d285f2

Please sign in to comment.