2023-01-27 14:24:31 +08:00
|
|
|
repos:
|
2023-01-27 14:29:20 +08:00
|
|
|
- repo: local
|
|
|
|
hooks:
|
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-01-27 14:29:20 +08:00
|
|
|
- id: mypy
|
|
|
|
name: mypy
|
2023-05-14 12:25:36 +08:00
|
|
|
entry: mypy tinygrad/ extra/helpers.py --check-untyped-defs --explicit-package-bases --warn-unreachable # --warn-return-any
|
2023-02-28 01:52:04 +08:00
|
|
|
language: system
|
|
|
|
always_run: true
|
|
|
|
pass_filenames: false
|
2023-03-13 13:42:26 +08:00
|
|
|
- id: tests
|
2023-05-04 03:46:16 +08:00
|
|
|
name: subset of (CPU) tests
|
2023-07-09 06:54:58 +08:00
|
|
|
entry: env CPU=1 pytest test/unit/ test/test_ops.py test/test_dtype.py
|
2023-03-13 13:42:26 +08:00
|
|
|
language: system
|
|
|
|
always_run: true
|
|
|
|
pass_filenames: false
|
|
|
|
- id: pylint
|
|
|
|
name: pylint
|
|
|
|
entry: pylint tinygrad/
|
|
|
|
language: system
|
|
|
|
always_run: true
|
|
|
|
pass_filenames: false
|