Skip to content

Commit

Permalink
make use of new zpretty features and remove find
Browse files Browse the repository at this point in the history
  • Loading branch information
jensens committed Jul 28, 2024
1 parent c3afefd commit 10ecab4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/mxmake/topics/qa/zpretty.mk
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,18 @@
ZPRETTY_TARGET:=$(SENTINEL_FOLDER)/zpretty.sentinel
$(ZPRETTY_TARGET): $(MXENV_TARGET)
@echo "Install zpretty"
@$(PYTHON_PACKAGE_COMMAND) install zpretty
@$(PYTHON_PACKAGE_COMMAND) install "zpretty>=3.1.0"
@touch $(ZPRETTY_TARGET)

.PHONY: zpretty-check
zpretty-check: $(ZPRETTY_TARGET)
@echo "Run zpretty check in: $(ZPRETTY_SRC)"
@find $(ZPRETTY_SRC) -name '*.zcml' -or -name '*.xml' -exec zpretty --check {} +
@zpretty --check $(ZPRETTY_SRC)

.PHONY: zpretty-format
zpretty-format: $(ZPRETTY_TARGET)
@echo "Run zpretty format in: $(ZPRETTY_SRC)"
@find $(ZPRETTY_SRC) -name '*.zcml' -or -name '*.xml' -exec zpretty -i {} +
@zpretty -i $(ZPRETTY_SRC)

.PHONY: zpretty-dirty
zpretty-dirty:
Expand Down

0 comments on commit 10ecab4

Please sign in to comment.