From 338323ec4be1b517fd2c3b20fba5c91233e286cc Mon Sep 17 00:00:00 2001 From: "Keto D. Zhang" Date: Sat, 15 Jun 2024 18:15:09 -0700 Subject: [PATCH] ci: Add commitlint to pre-commit --- .pre-commit-config.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ae0ef0a..f0f0724 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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