2023-01-27 14:24:31 +08:00
|
|
|
repos:
|
2023-01-27 14:29:20 +08:00
|
|
|
- repo: local
|
|
|
|
hooks:
|
2023-11-26 06:09:06 +08:00
|
|
|
- id: whitespace
|
|
|
|
name: strip whitespace
|
2024-05-15 10:30:02 +08:00
|
|
|
entry: find tinygrad -type f -name "*.py" -exec sed -i '' 's/ *$//' '{}' ';'
|
2023-11-26 06:09:06 +08:00
|
|
|
language: system
|
|
|
|
always_run: true
|
|
|
|
pass_filenames: false
|
2023-10-07 19:39:21 +08:00
|
|
|
- id: ruff
|
|
|
|
name: ruff
|
2024-05-15 12:16:14 +08:00
|
|
|
entry: ruff check .
|
2023-10-07 19:39:21 +08:00
|
|
|
language: system
|
|
|
|
always_run: true
|
|
|
|
pass_filenames: false
|
2023-12-02 03:34:47 +08:00
|
|
|
- id: mypy
|
|
|
|
name: mypy
|
2024-02-21 16:41:05 +08:00
|
|
|
entry: mypy tinygrad/ --strict-equality
|
2023-12-02 03:34:47 +08:00
|
|
|
language: system
|
|
|
|
always_run: true
|
|
|
|
pass_filenames: false
|
2024-01-15 11:36:05 +08:00
|
|
|
- id: docs2
|
|
|
|
name: docs2
|
2024-05-15 11:44:59 +08:00
|
|
|
entry: python3 docs/abstractions2.py
|
2023-12-02 16:32:25 +08:00
|
|
|
language: system
|
|
|
|
always_run: true
|
|
|
|
pass_filenames: false
|
|
|
|
- id: devicetests
|
|
|
|
name: select GPU tests
|
2023-12-06 02:20:10 +08:00
|
|
|
entry: env GPU=1 PYTHONPATH="." pytest test/test_uops.py test/test_custom_function.py test/test_search.py
|
2023-03-19 05:40:23 +08:00
|
|
|
language: system
|
|
|
|
always_run: true
|
|
|
|
pass_filenames: false
|
2023-03-13 13:42:26 +08:00
|
|
|
- id: tests
|
2024-02-16 08:38:37 +08:00
|
|
|
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_custom_function.py test/test_assign.py test/test_symbolic_shapetracker.py
|
2023-11-10 07:15:18 +08:00
|
|
|
language: system
|
|
|
|
always_run: true
|
|
|
|
pass_filenames: false
|
|
|
|
- id: example
|
|
|
|
name: multi device tests
|
2023-12-06 08:17:57 +08:00
|
|
|
entry: python3 test/external/external_test_example.py
|
2023-03-13 13:42:26 +08:00
|
|
|
language: system
|
|
|
|
always_run: true
|
|
|
|
pass_filenames: false
|
2023-11-02 09:44:00 +08:00
|
|
|
- id: pylint
|
|
|
|
name: pylint
|
2023-11-14 12:18:40 +08:00
|
|
|
entry: env PYTHONPATH="." python3 -m pylint tinygrad/
|
2023-11-02 09:44:00 +08:00
|
|
|
language: system
|
|
|
|
always_run: true
|
2024-06-19 02:34:05 +08:00
|
|
|
pass_filenames: false
|