Skip to content

Commit ea6c60e

Browse files
committed
pip install ruff
1 parent 9da5ea6 commit ea6c60e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Makefile

+2-1
Original file line numberDiff line numberDiff line change
@@ -1493,7 +1493,8 @@ cpplint: lint-cpp
14931493
# Try with '--system' if it fails without; the system may have set '--user'
14941494
lint-py-build:
14951495
$(info Pip installing ruff linter on $(shell $(PYTHON) --version)...)
1496-
$(PYTHON) -m pip install --upgrade --user ruff
1496+
$(PYTHON) -m pip install --upgrade --target tools/pip/site-packages ruff || \
1497+
$(PYTHON) -m pip install --upgrade --system -target tools/pip/site-packages ruff
14971498

14981499
.PHONY: lint-py
14991500
# Lints the Python code with ruff.

0 commit comments

Comments
 (0)