Skip to content

Commit e0ec294

Browse files
committed
tools: pin ruff version number
New versions have new rules and end up breaking builds unexpectedly.
1 parent 275e512 commit e0ec294

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1495,8 +1495,8 @@ cpplint: lint-cpp
14951495
# Try with '--system' if it fails without; the system may have set '--user'
14961496
lint-py-build:
14971497
$(info Pip installing ruff on $(shell $(PYTHON) --version)...)
1498-
$(PYTHON) -m pip install --upgrade --target tools/pip/site-packages ruff || \
1499-
$(PYTHON) -m pip install --upgrade --system --target tools/pip/site-packages ruff
1498+
$(PYTHON) -m pip install --upgrade --target tools/pip/site-packages ruff==0.0.272 || \
1499+
$(PYTHON) -m pip install --upgrade --system --target tools/pip/site-packages ruff==0.0.272
15001500

15011501
.PHONY: lint-py
15021502
ifneq ("","$(wildcard tools/pip/site-packages/ruff)")

0 commit comments

Comments
 (0)