Skip to content

Commit 62c9265

Browse files
committed
chore: Add pre-commit hooks
1 parent 5f0f0a7 commit 62c9265

3 files changed

Lines changed: 35 additions & 1 deletion

File tree

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,3 @@ target/
44
argus.log
55
argus.log.*
66
jstable-*
7-

.pre-commit-config.yaml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# See https://pre-commit.com for more information
2+
# See https://pre-commit.com/hooks.html for more hooks
3+
default_install_hook_types:
4+
- commit-msg
5+
- pre-commit
6+
- pre-push
7+
8+
repos:
9+
- repo: 'https://github.com/pre-commit/pre-commit-hooks'
10+
rev: v6.0.0
11+
hooks:
12+
- id: check-added-large-files
13+
- id: check-case-conflict
14+
- id: check-executables-have-shebangs
15+
- id: check-symlinks
16+
- id: check-yaml
17+
- id: end-of-file-fixer
18+
- id: forbid-new-submodules
19+
- id: mixed-line-ending
20+
- id: trailing-whitespace
21+
- repo: https://github.com/compilerla/conventional-pre-commit
22+
rev: v4.3.0
23+
hooks:
24+
- id: conventional-pre-commit
25+
stages: [commit-msg]
26+
- repo: https://github.com/FeryET/pre-commit-rust
27+
rev: v1.2.1
28+
hooks:
29+
- id: fmt
30+
- id: cargo-check
31+
- id: build
32+
stages: [pre-push]
33+
- id: test
34+
stages: [pre-push]

GEMINI.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
## General Instructions
44

5+
- After cloning the repo, make sure that `prek install` has been run if `.git/hooks/pre-commit` does not exist
56
- Always start by examining the current status of the project in @ROADMAP.md
67
- Then implement the next checklist item in the roadmap, checking off completed items
78
- Items can be added or removed to the roadmap as necessary

0 commit comments

Comments
 (0)