move graph to runtime, check line count with sz.py (#2842)

* move graph to runtime, check line count with sz.py

* oops, didn't save

* dtype aliases

* restore comment, REALCOUNT
This commit is contained in:
George Hotz
2023-12-18 20:30:06 -08:00
committed by GitHub
parent 15dc5bcfbd
commit 6617dcf095
10 changed files with 28 additions and 33 deletions

View File

@@ -31,8 +31,8 @@ jobs:
key: linting-packages-${{ hashFiles('**/setup.py') }}-3.8
- name: Install dependencies
run: pip install -e '.[linting,testing]' --extra-index-url https://download.pytorch.org/whl/cpu
- name: Repo line count
run: python sz.py
- name: Repo line count <5000 lines
run: MAX_LINE_COUNT=5000 python sz.py
- name: Lint with pylint
run: python -m pylint --disable=all -e W0311 -e C0303 --jobs=0 --indent-string=' ' **/*.py
- name: Lint with ruff
@@ -43,10 +43,6 @@ jobs:
run: python -m pylint tinygrad/
- name: Run mypy
run: python -m mypy
- name: Install SLOCCount
run: sudo apt install sloccount
- name: Check <5000 lines
run: sloccount tinygrad test examples extra; if [ $(sloccount tinygrad | sed -n 's/.*Total Physical Source Lines of Code (SLOC)[ ]*= \([^ ]*\).*/\1/p' | tr -d ',') -gt 5000 ]; then exit 1; fi
- name: Test Docs
run: |
python docs/abstractions.py