blackopsrepl commited on
Commit
889bb7a
·
1 Parent(s): 8f89a80

chore(dev): add pre-commit validation hooks

Browse files

Add the same pre-commit validation surface used by solverforge-hospital.

The hook set checks YAML, merge conflicts, file endings, trailing whitespace, large files, gitleaks, rustfmt, and clippy. This is development tooling only: it does not affect runtime behavior, solver configuration, route rendering, or the browser app.

Files changed (1) hide show
  1. .pre-commit-config.yaml +21 -0
.pre-commit-config.yaml ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ repos:
2
+ - repo: https://github.com/pre-commit/pre-commit-hooks
3
+ rev: v4.5.0
4
+ hooks:
5
+ - id: check-yaml
6
+ - id: end-of-file-fixer
7
+ - id: trailing-whitespace
8
+ - id: check-merge-conflict
9
+ - id: check-added-large-files
10
+
11
+ - repo: https://github.com/gitleaks/gitleaks
12
+ rev: v8.18.0
13
+ hooks:
14
+ - id: gitleaks
15
+ - repo: https://github.com/doublify/pre-commit-rust
16
+ rev: v1.0
17
+ hooks:
18
+ - id: fmt
19
+ args: ["--", "--check"]
20
+ - id: clippy
21
+ args: ["--", "-D", "warnings"]