From c55dca6b3d62dd06cc1931cb8cefa28fe6f77285 Mon Sep 17 00:00:00 2001 From: "Karl O. Pinc" Date: Fri, 21 Jun 2024 18:10:57 -0500 Subject: [PATCH] Fix conditional yamllint execution --- Makefile_pgwui.mk | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Makefile_pgwui.mk b/Makefile_pgwui.mk index 97c646e..90c6660 100644 --- a/Makefile_pgwui.mk +++ b/Makefile_pgwui.mk @@ -188,7 +188,9 @@ DEVEL_DEPS := setup.py pyproject.toml MANIFEST.in .PHONY: run-linters run-linters: devel/pytest devel/pytest/bin/flake8 . - [ -e .yamllint.yaml ] && devel/pytest/bin/yamllint --strict . + if [ -e .yamllint.yaml ] ; then \ + devel/pytest/bin/yamllint --strict . ; \ + fi # Re-create development environment when build environment changes devel: $(DEVEL_DEPS) @@ -226,7 +228,9 @@ devel/pytest: $(DEVEL_DEPS) devel/pytest/bin/pip install --upgrade wheel ; \ devel/pytest/bin/pip install dist/${PGWUI_COMPONENT}-*.tar.gz ; \ devel/pytest/bin/pip install flake8 ; \ - [ -e .yamllint.yaml ] && devel/pytest/bin/pip install yamllint ; \ + if [ -e .yamllint.yaml ] ; then \ + devel/pytest/bin/pip install yamllint ; \ + fi ; \ devel/pytest/bin/pip install pytest-cov ; \ devel/pytest/bin/pip install -e '.[test]' ; \ ) \ -- 2.34.1