Skip to content

Commit 7786d7c

Browse files
Trottdanielleadams
authored andcommitted
tools: pin ruff version number
New versions have new rules and end up breaking builds unexpectedly. PR-URL: #48505 Backport-PR-URL: #48753 Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com> Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Moshe Atlow <moshe@atlow.co.il> Reviewed-By: Ruy Adorno <ruyadorno@google.com> Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent 6f3a8b4 commit 7786d7c

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
@@ -1518,8 +1518,8 @@ cpplint: lint-cpp
15181518
# Try with '--system' if it fails without; the system may have set '--user'
15191519
lint-py-build:
15201520
$(info Pip installing ruff on $(shell $(PYTHON) --version)...)
1521-
$(PYTHON) -m pip install --upgrade --target tools/pip/site-packages ruff || \
1522-
$(PYTHON) -m pip install --upgrade --system --target tools/pip/site-packages ruff
1521+
$(PYTHON) -m pip install --upgrade --target tools/pip/site-packages ruff==0.0.272 || \
1522+
$(PYTHON) -m pip install --upgrade --system --target tools/pip/site-packages ruff==0.0.272
15231523

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

0 commit comments

Comments
 (0)