Skip to content

Commit f195110

Browse files
feat: add unit tests to pre-commit hooks
Run unit tests locally before commit to catch issues before CI. Addresses feedback from @drewyangdev on #1211. Co-Authored-By: Claude Opus 4.5 <[email protected]>
1 parent 27391c7 commit f195110

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.pre-commit-config.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,12 @@ repos:
4848
- types-tqdm
4949
- pandas-stubs
5050
- numpy
51+
- repo: local
52+
hooks:
53+
- id: unit-tests
54+
name: unit tests
55+
entry: pytest tests/unit/ -v --tb=short
56+
language: system
57+
pass_filenames: false
58+
always_run: true
59+
stages: [pre-commit]

0 commit comments

Comments
 (0)