diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f008092bcf..53011fb6a4 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -157,7 +157,7 @@ jobs: uses: ./.github/actions/setup-tinygrad with: key: torch-backend-pillow-torchvision-et-pt - deps: testing_minimal,linting + deps: testing_minimal pydeps: "pillow torchvision expecttest" llvm: 'true' - name: Install ninja @@ -165,7 +165,9 @@ jobs: sudo apt update || true sudo apt install -y --no-install-recommends ninja-build - name: Lint with ruff - run: python3 -m ruff check extra/torch_backend/backend.py + run: | + pip3 install --upgrade --force-reinstall ruff==0.11.0 + python3 -m ruff check extra/torch_backend/backend.py - name: Test one op run: PYTHONPATH=. FORWARD_ONLY=1 TINY_BACKEND=1 python3 test/test_ops.py TestOps.test_add - name: Test ResNet-18 @@ -308,7 +310,9 @@ jobs: - name: Lint bad-indentation and trailing-whitespace with pylint run: python -m pylint --disable=all -e W0311 -e C0303 --jobs=0 --indent-string=' ' --recursive=y . - name: Lint with ruff - run: python3 -m ruff check . + run: | + pip3 install --upgrade --force-reinstall ruff==0.11.0 + python3 -m ruff check . - name: Lint tinygrad with pylint run: python -m pylint tinygrad/ - name: Run mypy diff --git a/setup.py b/setup.py index 6c26adb73b..23dc67ec23 100644 --- a/setup.py +++ b/setup.py @@ -40,7 +40,7 @@ setup(name='tinygrad', "mypy==1.13.0", "typing-extensions", "pre-commit", - "ruff==0.11.2", + "ruff", "types-tqdm", ], #'mlperf': ["mlperf-logging @ git+https://github.com/mlperf/logging.git@4.1.0-rc3"],