chore: add commitizen linting with pre-commit

chore/commitizen
Nefo Fortressia 2021-11-09 06:10:39 +07:00
parent 52ef47f6fd
commit 1a4c3bcce5
Signed by: fortressia
GPG Key ID: 6D7972CC76174995
1 changed files with 11 additions and 0 deletions

11
.pre-commit-config.yaml Normal file
View File

@ -0,0 +1,11 @@
repos:
- repo: https://github.com/commitizen-tools/commitizen
rev: master
hooks:
- id: commitizen
stages: [commit-msg]
- repo: https://github.com/doublify/pre-commit-rust
rev: master
hooks:
- id: fmt
- id: cargo-check