Skip to content

Commit d8d65e2

Browse files
authored
update ruff to 0.11.2 (tinygrad#9531)
0.11.2 fixed the false alert from 0.11.1. also pinned the version in setup for now to prevent broken CI from ruff upgrade
1 parent ee3ed73 commit d8d65e2

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

.github/workflows/test.yml

+3-7
Original file line numberDiff line numberDiff line change
@@ -157,17 +157,15 @@ jobs:
157157
uses: ./.github/actions/setup-tinygrad
158158
with:
159159
key: torch-backend-pillow-torchvision-et-pt
160-
deps: testing_minimal
160+
deps: testing_minimal,linting
161161
pydeps: "pillow torchvision expecttest"
162162
llvm: 'true'
163163
- name: Install ninja
164164
run: |
165165
sudo apt update || true
166166
sudo apt install -y --no-install-recommends ninja-build
167167
- name: Lint with ruff
168-
run: |
169-
pip3 install --upgrade --force-reinstall ruff==0.11.0
170-
python3 -m ruff check extra/torch_backend/backend.py
168+
run: python3 -m ruff check extra/torch_backend/backend.py
171169
- name: Test one op
172170
run: PYTHONPATH=. FORWARD_ONLY=1 TINY_BACKEND=1 python3 test/test_ops.py TestOps.test_add
173171
- name: Test ResNet-18
@@ -310,9 +308,7 @@ jobs:
310308
- name: Lint bad-indentation and trailing-whitespace with pylint
311309
run: python -m pylint --disable=all -e W0311 -e C0303 --jobs=0 --indent-string=' ' --recursive=y .
312310
- name: Lint with ruff
313-
run: |
314-
pip3 install --upgrade --force-reinstall ruff==0.11.0
315-
python3 -m ruff check .
311+
run: python3 -m ruff check .
316312
- name: Lint tinygrad with pylint
317313
run: python -m pylint tinygrad/
318314
- name: Run mypy

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"mypy==1.13.0",
4141
"typing-extensions",
4242
"pre-commit",
43-
"ruff",
43+
"ruff==0.11.2",
4444
"types-tqdm",
4545
],
4646
#'mlperf': ["mlperf-logging @ git+https://github.com/mlperf/logging.git@4.1.0-rc3"],

0 commit comments

Comments
 (0)