-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
41 lines (41 loc) · 1.1 KB
/
.pre-commit-config.yaml
File metadata and controls
41 lines (41 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
repos:
- repo: local
hooks:
- id: invar-md-protected
name: INVAR.md Protection
entry: bash -c 'if git diff --cached --name-only | grep -q "^INVAR.md$"; then
echo "Warning - INVAR.md was modified directly. Use git commit --no-verify if
intentional."; exit 1; fi'
language: system
pass_filenames: false
stages:
- pre-commit
- id: ruff-check
name: Ruff Check
entry: bash -c 'source .venv/bin/activate && ruff check src/invar/'
language: system
pass_filenames: false
stages:
- pre-commit
types:
- python
- id: mypy
name: Type Check (mypy)
entry: bash -c 'source .venv/bin/activate && mypy src/invar/mcp/handlers.py src/invar/core/doc_parser.py
src/invar/core/doc_edit.py src/invar/shell/doc_tools.py --ignore-missing-imports
--follow-imports=silent'
language: system
pass_filenames: false
stages:
- pre-commit
types:
- python
- id: invar-guard
name: Invar Guard
entry: bash scripts/smart-guard.sh
language: system
pass_filenames: false
stages:
- pre-commit
types:
- python