Skip to content

Commit

Permalink
build: add commit-msg hook
Browse files Browse the repository at this point in the history
  • Loading branch information
sethfischer committed Jun 12, 2021
1 parent e96b4f5 commit 85a0763
Show file tree
Hide file tree
Showing 4 changed files with 163 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.PHONY: git-hooks
git-hooks: .git/hooks/pre-commit
git-hooks: .git/hooks/pre-commit .git/hooks/commit-msg

.git/hooks/%: git-hooks/%.sh
install --mode=700 $< $@
Expand Down
3 changes: 3 additions & 0 deletions git-hooks/commit-msg.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env bash

cz check --commit-msg-file="$1"
159 changes: 158 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ black = "^21.6b0"
flake8 = "^3.9.2"
isort = "^5.8.0"
rstcheck = "^3.3.1"
commitizen = "^2.17.9"

[build-system]
requires = ["poetry-core>=1.0.0"]
Expand Down

0 comments on commit 85a0763

Please sign in to comment.