Skip to content

Commit 735493c

Browse files
author
David Freire
committed
feat: add pre-commit hooks
1 parent 9f4a5e8 commit 735493c

2 files changed

Lines changed: 19 additions & 0 deletions

File tree

.pre-commit-config.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
repos:
2+
- repo: https://github.com/doublify/pre-commit-rust
3+
rev: v1.0
4+
hooks:
5+
- id: fmt
6+
- id: cargo-check
7+
- repo: https://github.com/compilerla/conventional-pre-commit
8+
rev: v3.1.0
9+
hooks:
10+
- id: conventional-pre-commit
11+
stages: [commit-msg]
12+
args: []

hooks.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/sh
2+
3+
set -xe
4+
5+
pip install pre-commit
6+
pre-commit install
7+
pre-commit install --hook-type commit-msg

0 commit comments

Comments
 (0)