From af9c49da287802001ce9cfb45e86e13ccc650e05 Mon Sep 17 00:00:00 2001 From: Lars Bilke <lars.bilke@ufz.de> Date: Wed, 6 Jul 2022 10:13:55 +0200 Subject: [PATCH] [vale] Fixed link to docs and added vale sync to pre-commit. We use a vale plugin for Hugo exceptions and `vale sync` downloads it. --- .gitignore | 2 ++ .pre-commit-config.yaml | 2 +- .vale.ini | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 417f635afe7..b2c312728e6 100644 --- a/.gitignore +++ b/.gitignore @@ -34,3 +34,5 @@ CMakeUserPresets.json # VS Code devcontainer /.cpm nohup.out + +/Documentation/.vale diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c72109151d3..3afa37f0f9e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -65,6 +65,6 @@ repos: files: \.(h|cpp)$ - id: vale name: Check spelling with vale - entry: bash -c 'if command -v vale &> /dev/null; then VALE_MIN_ALERT_LEVEL=error scripts/ci/helper/run-vale; else exit 0; fi' + entry: bash -c 'if command -v vale &> /dev/null; then vale sync; VALE_MIN_ALERT_LEVEL=error scripts/ci/helper/run-vale; else exit 0; fi' pass_filenames: false language: system diff --git a/.vale.ini b/.vale.ini index d4dd944ff32..505d9885bd3 100644 --- a/.vale.ini +++ b/.vale.ini @@ -1,6 +1,6 @@ # Vale configuration file. # -# For more information, see https://errata-ai.gitbook.io/vale/getting-started/configuration. +# For more information, see https://vale.sh/docs/topics/config StylesPath = Documentation/.vale Vocab = ogs MinAlertLevel = suggestion -- GitLab