diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8e13920..f50add2 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,14 @@ repos: - repo: local hooks: + - id: commitizen + name: My commitizen check + entry: cz + args: ['check', '--commit-msg-file', '.git/COMMIT_EDITMSG'] + pass_filenames: false + language: system + stages: [commit-msg] + - id: black name: black entry: black . diff --git a/requirements/dev-requirements.txt b/requirements/dev-requirements.txt index 6ee0ea7..9526a7b 100644 --- a/requirements/dev-requirements.txt +++ b/requirements/dev-requirements.txt @@ -13,4 +13,5 @@ pytest-clarity==1.0.1 pytest-ordering==0.6 hypothesis==6.56.3 setuptools>65.5.1 -pyupgrade==3.4.0 \ No newline at end of file +pyupgrade==3.4.0 +commitizen==3.2.2 \ No newline at end of file