mirror of https://github.com/commaai/tinygrad.git
46 lines
1.3 KiB
YAML
46 lines
1.3 KiB
YAML
repos:
|
|
- repo: local
|
|
hooks:
|
|
- id: mypy
|
|
name: mypy
|
|
entry: mypy tinygrad/ extra/helpers.py
|
|
language: system
|
|
always_run: true
|
|
pass_filenames: false
|
|
- id: ruff
|
|
name: ruff
|
|
entry: ruff .
|
|
language: system
|
|
always_run: true
|
|
pass_filenames: false
|
|
- id: docs
|
|
name: docs
|
|
entry: python3 docs/abstractions.py
|
|
language: system
|
|
always_run: true
|
|
pass_filenames: false
|
|
- id: flake8
|
|
name: flake8
|
|
entry: flake8 --statistics -j4
|
|
language: system
|
|
always_run: true
|
|
pass_filenames: false
|
|
- id: tests
|
|
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
|
|
language: system
|
|
always_run: true
|
|
pass_filenames: false
|
|
- id: example
|
|
name: multi device tests
|
|
entry: python3 test/external/test_example.py
|
|
language: system
|
|
always_run: true
|
|
pass_filenames: false
|
|
- id: pylint
|
|
name: pylint
|
|
entry: env PYTHONPATH="." python3 -m pylint tinygrad/
|
|
language: system
|
|
always_run: true
|
|
pass_filenames: false
|