Skip to content

Commit

Permalink
build: print Running XYZ linter... for py and yml
Browse files Browse the repository at this point in the history
PR-URL: #54386
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
  • Loading branch information
Aviv Keller authored and targos committed Oct 4, 2024
1 parent a97841e commit 7861ca5
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 @@ -1543,7 +1543,7 @@ lint-py-build:
ifneq ("","$(wildcard tools/pip/site-packages/ruff)")
# Lint the Python code with ruff.
lint-py:
tools/pip/site-packages/bin/ruff --version
$(info Running Python linter...)
tools/pip/site-packages/bin/ruff check .
else
lint-py:
Expand All @@ -1563,6 +1563,7 @@ lint-yaml-build:
# Lints the YAML files with yamllint.
lint-yaml:
@if [ -d "tools/pip/site-packages/yamllint" ]; then \
$(info Running YAML linter...) \
PYTHONPATH=tools/pip $(PYTHON) -m yamllint .; \
else \
echo 'YAML linting with yamllint is not available'; \
Expand Down

0 comments on commit 7861ca5

Please sign in to comment.