Files
ai-rfm/.pre-commit-config.yaml
demian3b 8e4e38e851 chore: enforce train vs README split, ignore SDFs, drop tracked trajectories.
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
2026-04-16 23:59:19 +09:00

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]