From 4e8aea9ff47c272dc101900535c57a879fcf7ea1 Mon Sep 17 00:00:00 2001 From: Kelly Sovacool Date: Fri, 18 Aug 2023 10:50:00 -0400 Subject: [PATCH] feat: use pre-commit to enforce commit style --- .pre-commit-config.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 .pre-commit-config.yaml diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..cc3632a --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,10 @@ +default_install_hook_types: [pre-commit, commit-msg] +default_stages: [pre-commit] +repos: + # enforce commit format + - repo: https://github.com/compilerla/conventional-pre-commit + rev: v2.3.0 + hooks: + - id: conventional-pre-commit + stages: [commit-msg] + args: []