diff --git a/Makefile b/Makefile index 5564cfd7778ff9..3cc4d11dd6b2bd 100644 --- a/Makefile +++ b/Makefile @@ -1518,8 +1518,8 @@ cpplint: lint-cpp # Try with '--system' if it fails without; the system may have set '--user' lint-py-build: $(info Pip installing ruff on $(shell $(PYTHON) --version)...) - $(PYTHON) -m pip install --upgrade --target tools/pip/site-packages ruff || \ - $(PYTHON) -m pip install --upgrade --system --target tools/pip/site-packages ruff + $(PYTHON) -m pip install --upgrade --target tools/pip/site-packages ruff==0.0.272 || \ + $(PYTHON) -m pip install --upgrade --system --target tools/pip/site-packages ruff==0.0.272 .PHONY: lint-py ifneq ("","$(wildcard tools/pip/site-packages/ruff)")