Skip to content

Commit

Permalink
pip install ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
cclauss committed Apr 12, 2023
1 parent 9da5ea6 commit ea6c60e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -1493,7 +1493,8 @@ cpplint: lint-cpp
# Try with '--system' if it fails without; the system may have set '--user'
lint-py-build:
$(info Pip installing ruff linter on $(shell $(PYTHON) --version)...)
$(PYTHON) -m pip install --upgrade --user ruff
$(PYTHON) -m pip install --upgrade --target tools/pip/site-packages ruff || \
$(PYTHON) -m pip install --upgrade --system -target tools/pip/site-packages ruff

.PHONY: lint-py
# Lints the Python code with ruff.
Expand Down

0 comments on commit ea6c60e

Please sign in to comment.