2023-01-27 14:24:31 +08:00
|
|
|
repos:
|
2023-01-27 14:29:20 +08:00
|
|
|
- repo: local
|
|
|
|
hooks:
|
2023-11-16 03:13:38 +08:00
|
|
|
- id: mypy
|
|
|
|
name: mypy
|
|
|
|
entry: mypy tinygrad/ extra/helpers.py
|
|
|
|
language: system
|
|
|
|
always_run: true
|
|
|
|
pass_filenames: false
|
2023-10-07 19:39:21 +08:00
|
|
|
- id: ruff
|
|
|
|
name: ruff
|
|
|
|
entry: ruff .
|
|
|
|
language: system
|
|
|
|
always_run: true
|
|
|
|
pass_filenames: false
|
2023-03-19 05:40:23 +08:00
|
|
|
- id: docs
|
|
|
|
name: docs
|
|
|
|
entry: python3 docs/abstractions.py
|
|
|
|
language: system
|
|
|
|
always_run: true
|
|
|
|
pass_filenames: false
|
2023-01-27 14:31:45 +08:00
|
|
|
- id: flake8
|
|
|
|
name: flake8
|
2023-07-24 23:19:58 +08:00
|
|
|
entry: flake8 --statistics -j4
|
2023-01-27 14:31:45 +08:00
|
|
|
language: system
|
|
|
|
always_run: true
|
|
|
|
pass_filenames: false
|
2023-03-13 13:42:26 +08:00
|
|
|
- id: tests
|
2023-11-11 07:24:47 +08:00
|
|
|
name: subset of TORCH tests
|
|
|
|
entry: env PYTHONPATH="." TORCH=1 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
|
|
|
|
entry: python3 test/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
|
|
|
|
pass_filenames: false
|