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 <[email protected]>
  • Loading branch information
RedYetiDev authored and marco-ippolito committed Nov 17, 2024
1 parent 93ac799 commit 67834ee
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 @@ -1538,7 +1538,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 @@ -1558,6 +1558,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 67834ee

Please sign in to comment.