mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-01-08 06:34:03 -05:00
* don't use tons of memory for tests
* fix import and clean up pre-commit
* use pathlib
* no shm on windows
* Revert "use pathlib"
This reverts commit 7c38489820.
* run pre-commit hooks in test
* ugh, fix later
45 lines
1.4 KiB
YAML
45 lines
1.4 KiB
YAML
repos:
|
|
- repo: local
|
|
hooks:
|
|
- id: ruff
|
|
name: ruff
|
|
entry: python3 -m ruff check .
|
|
language: system
|
|
always_run: true
|
|
pass_filenames: false
|
|
- id: mypy
|
|
name: mypy
|
|
entry: python3 -m mypy tinygrad/ --strict-equality
|
|
language: system
|
|
always_run: true
|
|
pass_filenames: false
|
|
- id: docs2
|
|
name: docs2
|
|
entry: python3 docs/abstractions2.py
|
|
language: system
|
|
always_run: true
|
|
pass_filenames: false
|
|
- id: devicetests
|
|
name: select GPU tests
|
|
entry: env GPU=1 PYTHONPATH="." python3 -m pytest test/test_uops.py test/test_search.py
|
|
language: system
|
|
always_run: true
|
|
pass_filenames: false
|
|
- id: tests
|
|
name: subset of tests
|
|
entry: env PYTHONPATH="." python3 -m pytest -n=4 test/unit/ test/test_ops.py test/test_dtype.py test/test_schedule.py test/test_assign.py test/test_symbolic_shapetracker.py
|
|
language: system
|
|
always_run: true
|
|
pass_filenames: false
|
|
- id: example
|
|
name: multi device tests
|
|
entry: python3 test/external/external_test_example.py
|
|
language: system
|
|
always_run: true
|
|
pass_filenames: false
|
|
- id: pylint
|
|
name: pylint
|
|
entry: python3 -m pylint tinygrad/
|
|
language: system
|
|
always_run: true
|
|
pass_filenames: false |