tinygrad/.pre-commit-config.yaml

28 lines
847 B
YAML
Raw Normal View History

repos:
2023-01-27 14:29:20 +08:00
- repo: local
hooks:
2023-01-27 14:31:45 +08:00
- id: flake8
name: flake8
2023-03-12 03:35:16 +08:00
entry: flake8 tinygrad/ --indent-size=2 --select=F,E112,E113,E203,E304,E502,E702,E703,E71,E72,E731,W191,W6 --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-03-01 02:54:46 +08:00
entry: mypy tinygrad/ --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
name: subset of tests
entry: pytest test/unit/ test/test_ops.py
language: system
always_run: true
pass_filenames: false
- id: pylint
name: pylint
entry: pylint tinygrad/
language: system
always_run: true
pass_filenames: false