Add pre-commit guard against staging train.py with README.md, document the two-commit workflow, gitignore *.sdf, and remove trajectory SDFs from the index so logs stay small. Made-with: Cursor
16 lines
537 B
YAML
16 lines
537 B
YAML
repos:
|
|
- repo: local
|
|
hooks:
|
|
- id: no-train-readme-same-commit
|
|
name: forbid train.py + README.md in one commit
|
|
entry: python scripts/precommit_no_train_readme_mix.py
|
|
language: system
|
|
pass_filenames: false
|
|
stages: [pre-commit]
|
|
- id: train-performance-gate
|
|
name: train.py gate (flow all branches; RMSD gate main only)
|
|
entry: python scripts/precommit_performance_gate.py
|
|
language: system
|
|
pass_filenames: false
|
|
stages: [pre-commit, post-merge]
|