Skip to content

Commit

Permalink
ci: Add commitlint to pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
ketozhang committed Jun 16, 2024
1 parent f8fb1fa commit 338323e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ repos:
hooks:
- id: black

- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
rev: v9.16.0
hooks:
- id: commitlint
stages: [commit-msg]
additional_dependencies: ['@commitlint/config-conventional']
ci:
# autofix_commit_msg: |
# [pre-commit.ci] auto fixes from pre-commit.com hooks
Expand Down

0 comments on commit 338323e

Please sign in to comment.