mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-01-08 06:34:03 -05:00
* flake8: Ignore frequent violations, correct infrequent ones * Ignore some rules in test * Reorder test ignores * Lint test + main * EOF indent * Include all E71,E72 errors * Test the failing case in CI * Revert "Test the failing case in CI" This reverts commit110add0a70. * Push to test! This reverts commitf317532779. * ok back to passing This reverts commitba5052685f. * Prove that CI fails when formatting is incorrect. * Fix formatting * Remove duplicitous E117 rule * Use flake8 config for precommit --------- Co-authored-by: waifairer <waifairer@gmail.com>
34 lines
966 B
YAML
34 lines
966 B
YAML
repos:
|
|
- repo: local
|
|
hooks:
|
|
- 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: mypy
|
|
name: mypy
|
|
entry: mypy tinygrad/ extra/helpers.py --check-untyped-defs --explicit-package-bases --warn-unreachable # --warn-return-any
|
|
language: system
|
|
always_run: true
|
|
pass_filenames: false
|
|
- id: tests
|
|
name: subset of (CPU) tests
|
|
entry: env CPU=1 pytest test/unit/ test/test_ops.py test/test_dtype.py
|
|
language: system
|
|
always_run: true
|
|
pass_filenames: false
|
|
- id: pylint
|
|
name: pylint
|
|
entry: pylint tinygrad/
|
|
language: system
|
|
always_run: true
|
|
pass_filenames: false
|