Skip to content

Commit

Permalink
pre-commit + and
Browse files Browse the repository at this point in the history
  • Loading branch information
geohot committed Nov 24, 2023
1 parent 6ad2ce0 commit 6dffac2
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
run: PYTHONPATH="." python mnist.py
- name: Install mypy + torch for testing
run: pip install mypy torch --extra-index-url https://download.pytorch.org/whl/cpu
- name: Test ops / dtype / optim
- name: Test ops and dtype and optim
run: |
PYTHONPATH="." python test/test_ops.py
PYTHONPATH="." python test/test_dtype.py
Expand Down
18 changes: 15 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,21 @@
repos:
- repo: local
hooks:
- id: tests
name: tests
entry: env PYTHONPATH="." pytest test/
- id: test ops
name: test ops
entry: env PYTHONPATH="." python test/test_ops.py
language: system
always_run: true
pass_filenames: false
- id: test dtype
name: test dtype
entry: env PYTHONPATH="." python test/test_dtype.py
language: system
always_run: true
pass_filenames: false
- id: test optim
name: test optim
entry: env PYTHONPATH="." python test/test_optim.py
language: system
always_run: true
pass_filenames: false
Expand Down

0 comments on commit 6dffac2

Please sign in to comment.