Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

style: Add Vale config from website #641

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/styles/config/vocabularies/Docs/accept.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Europa
10 changes: 7 additions & 3 deletions .github/workflows/linting.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
name: Lint tools code formatting
on:
push:
branches:
- master
pull_request:

# Cancel if a newer run is started
Expand All @@ -19,3 +16,10 @@ jobs:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5
- uses: pre-commit/[email protected]

vale:
name: runner / vale
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- uses: errata-ai/vale-action@reviewdog
20 changes: 20 additions & 0 deletions .vale.ini
Original file line number Diff line number Diff line change
@@ -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
Loading