5k line max (#1064)

This commit is contained in:
George Hotz
2023-06-27 10:53:18 -07:00
committed by GitHub
parent c8d87eb8d4
commit 70c07dfea5

View File

@@ -6,20 +6,6 @@ on:
workflow_dispatch:
jobs:
# OMG THIS TEST IS DISABLED, PLZ MAKE TINYGRAD TINY AGAIN
lines:
name: Less than 1000 lines
runs-on: ubuntu-latest
if: ${{ false }}
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Install SLOCCount
run: sudo apt-get install sloccount
- name: Check <1000 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 1000 ]; then exit 1; fi
linter:
name: Linters
runs-on: ubuntu-latest
@@ -43,6 +29,10 @@ jobs:
run: pylint tinygrad/
- name: Run mypy
run: mypy tinygrad/ --ignore-missing-imports --check-untyped-defs --explicit-package-bases --warn-unreachable
- name: Install SLOCCount
run: sudo apt-get 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
testcpu:
name: CPU Tests