From 586fed4ad0719564fe6b8ef20bc7137c26749e17 Mon Sep 17 00:00:00 2001 From: Edmund Miller Date: Sat, 2 Mar 2024 09:24:13 -0600 Subject: [PATCH 1/2] style: Add Vale config from website --- .github/workflows/linting.yml | 10 +++++++--- .vale.ini | 20 ++++++++++++++++++++ 2 files changed, 27 insertions(+), 3 deletions(-) create mode 100644 .vale.ini diff --git a/.github/workflows/linting.yml b/.github/workflows/linting.yml index 34e8cb0fd..06da40bef 100644 --- a/.github/workflows/linting.yml +++ b/.github/workflows/linting.yml @@ -1,8 +1,5 @@ name: Lint tools code formatting on: - push: - branches: - - master pull_request: # Cancel if a newer run is started @@ -19,3 +16,10 @@ jobs: - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 - uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5 - uses: pre-commit/action@v3.0.1 + + vale: + name: runner / vale + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 + - uses: errata-ai/vale-action@reviewdog diff --git a/.vale.ini b/.vale.ini new file mode 100644 index 000000000..7a9265d15 --- /dev/null +++ b/.vale.ini @@ -0,0 +1,20 @@ +StylesPath = .github/styles +MinAlertLevel = suggestion + +Packages = https://github.com/nf-core/vale/releases/latest/download/nf-core.zip +Vocab = Docs + +[*.md] +BasedOnStyles = nf-core, Vale +Vale.Spelling = NO + +[src/content/events/**] +nf-core.We = NO +nf-core.SeqeraLabs = NO + +[src/content/events/2024] +nf-core.SeqeraLabs = YES + +[src/content/events/*/bytesize_*.md] +BasedOnStyles = nf-core, Vale +Vale.Spelling = NO From ddf53f75f1fa46fb1eea9f8d3395af4ba3342b98 Mon Sep 17 00:00:00 2001 From: Edmund Miller Date: Sat, 2 Mar 2024 09:32:28 -0600 Subject: [PATCH 2/2] ci: Add accept for the sake of actions working --- .github/styles/config/vocabularies/Docs/accept.txt | 1 + 1 file changed, 1 insertion(+) create mode 100644 .github/styles/config/vocabularies/Docs/accept.txt diff --git a/.github/styles/config/vocabularies/Docs/accept.txt b/.github/styles/config/vocabularies/Docs/accept.txt new file mode 100644 index 000000000..3844bb167 --- /dev/null +++ b/.github/styles/config/vocabularies/Docs/accept.txt @@ -0,0 +1 @@ +Europa