Skip to content

Commit

Permalink
chore: update pre-commit hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
katomaso committed Mar 6, 2024
1 parent ac4777c commit 866ccea
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 4 deletions.
18 changes: 18 additions & 0 deletions .commitlintrc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
rules:
body-leading-blank: [1, always]
body-max-line-length: [2, always, 72]
footer-leading-blank: [1, always]
footer-max-line-length: [2, always, 72]
header-max-length: [2, always, 50]
subject-case:
- 2
- never
- [sentence-case, start-case, pascal-case, upper-case]
subject-empty: [2, never]
subject-full-stop: [2, never, "."]
type-case: [2, always, lower-case]
type-empty: [2, never]
type-enum:
- 2
- always
- [build, chore, ci, docs, feat, fix, perf, refactor, revert, style, test]
16 changes: 12 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,27 @@ repos:
stages: [pre-commit]

- repo: https://github.com/dronetag/pre-commit-hooks
rev: v1.1.1
rev: v1.0.0
hooks:
- id: check-email-domain

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-added-large-files
- id: check-docstring-first
- id: check-email-domain
- id: check-json
- id: check-toml
- id: check-yaml
- id: check-merge-conflict
- id: conventional-commit-msg
- id: debug-statements
- id: detect-private-key
- id: mixed-line-ending
args: [--fix=lf]
- id: end-of-file-fixer
- id: trailing-whitespace

- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
rev: v9.13.0
hooks:
- id: commitlint
stages: [commit-msg]

0 comments on commit 866ccea

Please sign in to comment.