diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 3f0f98f25..8248c7745 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -24,8 +24,4 @@ jobs: run: make test - name: Run Vale - run: | - git clone https://github.com/errata-ai/Microsoft.git - cp -r ./Microsoft/Microsoft ./styles - VALEFILES=$(find ./docs/ -type f -name "*.md" -print) - vale --no-exit $VALEFILES + run: make vale VALEOPTS="--no-exit --minAlertLevel='warning'" diff --git a/.vale.ini b/.vale.ini index 5001cf101..f89759a51 100644 --- a/.vale.ini +++ b/.vale.ini @@ -8,3 +8,5 @@ Packages = Microsoft [*] BasedOnStyles = Vale, Microsoft +Microsoft.Contractions = suggestion +Microsoft.Units = suggestion diff --git a/Makefile b/Makefile index 1a1724f23..7df3f8687 100644 --- a/Makefile +++ b/Makefile @@ -16,6 +16,7 @@ ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) . # the i18n builder cannot share the environment and doctrees with the others I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) . VALEFILES := $(shell find $(DOCS_DIR) -type f -name "*.md" -print) +VALEOPTS ?= # Add the following 'help' target to your Makefile # And add help text after each target name starting with '\#\#' @@ -186,8 +187,8 @@ linkcheckbroken: bin/python ## Run linkcheck and show only broken links .PHONY: vale vale: bin/python ## Run Vale style, grammar, and spell checks - vale sync - vale --no-wrap $(VALEFILES) + bin/vale sync + bin/vale --no-wrap $(VALEOPTS) $(VALEFILES) @echo @echo "Vale is finished; look for any errors in the above output." diff --git a/requirements.txt b/requirements.txt index 0430482f4..2af322d06 100644 --- a/requirements.txt +++ b/requirements.txt @@ -12,4 +12,4 @@ sphinx-sitemap sphinx-togglebutton sphinxcontrib-spelling sphinxext-opengraph -vale==2.30.0 +vale==3.7.1.0 diff --git a/styles/Vocab/Base/accept.txt b/styles/config/vocabularies/Base/accept.txt similarity index 100% rename from styles/Vocab/Base/accept.txt rename to styles/config/vocabularies/Base/accept.txt diff --git a/styles/Vocab/Base/reject.txt b/styles/config/vocabularies/Base/reject.txt similarity index 100% rename from styles/Vocab/Base/reject.txt rename to styles/config/vocabularies/Base/reject.txt diff --git a/styles/Vocab/Plone/accept.txt b/styles/config/vocabularies/Plone/accept.txt similarity index 100% rename from styles/Vocab/Plone/accept.txt rename to styles/config/vocabularies/Plone/accept.txt diff --git a/styles/Vocab/Plone/reject.txt b/styles/config/vocabularies/Plone/reject.txt similarity index 100% rename from styles/Vocab/Plone/reject.txt rename to styles/config/vocabularies/Plone/reject.txt