Skip to content

Commit

Permalink
ci: added pre-commit with generic, golangci, and commitizen hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeTRogers committed Jan 21, 2024
1 parent 9e139b7 commit 03c385f
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .cz.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
commitizen:
name: cz_conventional_commits
tag_format: v$version
update_changelog_on_bump: true
version: 1.1.3
version_scheme: semver
18 changes: 18 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: c4a0b883114b00d8d76b479c820ce7950211c99b # v4.5.0
hooks:
- id: check-added-large-files
- id: check-json
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/golangci/golangci-lint
rev: e3c2265f4939976874989e159386b3bb7dcf8e1f # v1.55.2
hooks:
- id: golangci-lint-full
- repo: https://github.com/commitizen-tools/commitizen
rev: a35591485dae4eadc30291fcb676169c209604a4 # v3.13.0
hooks:
- id: commitizen
stages: [commit-msg]

0 comments on commit 03c385f

Please sign in to comment.