From: Karl O. Pinc Date: Fri, 21 Jun 2024 23:10:57 +0000 (-0500) Subject: Fix conditional yamllint execution X-Git-Url: https://papio.biology.duke.edu/gitweb/?a=commitdiff_plain;h=e64e298c26cd772809f502f9e01cdcfbfb75a2bd;p=pgwui_core Fix conditional yamllint execution --- 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]' ; \ ) \