Skip to content

Commit

Permalink
Merge pull request #143 from UPPMAX/spellcheck_performance
Browse files Browse the repository at this point in the history
Spellcheck performance
  • Loading branch information
bclaremar authored Oct 19, 2024
2 parents 4d22980 + 6f12948 commit 6f0dcbc
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 3,435 deletions.
24 changes: 6 additions & 18 deletions .github/workflows/check_spelling.yaml
Original file line number Diff line number Diff line change
@@ -1,30 +1,18 @@
# Check that there is correct spelling in all files
name: Check spelling
name: Spellcheck

# Check spelling on the main branch only, as it takes quite long.
# Check spelling on the 21st day of the month.
# 21st as the first letter of this repo is the 21st letter in the alphabet.
on:
push:
branches:
- main
pull_request:
schedule:
- cron: "0 0 21 * *"


jobs:
check_spelling:

spellcheck:
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:

- name: Set up Git repository
uses: actions/checkout@v4

- uses: igsekor/pyspelling-any@v1.0.4



# checkout first
- uses: actions/checkout@v4
- uses: rojopolis/spellcheck-github-actions@0.43.0
name: Spellcheck
30 changes: 0 additions & 30 deletions .github/workflows/check_spelling_2.yaml

This file was deleted.

27 changes: 4 additions & 23 deletions .spellcheck.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
jobs: 4
matrix:
- name: markdown
dictionary:
Expand All @@ -19,27 +20,7 @@ matrix:
- 'pre'
- 'blockquote'
sources:
- '**/*.md'
default_encoding: utf-8
- name: Quarto markdown
dictionary:
wordlists:
- .wordlist.txt
output: wordlist.dic
encoding: utf-8
pipeline:
- pyspelling.filters.markdown:
markdown_extensions:
- markdown.extensions.extra:
- pyspelling.filters.html:
comments: true
attributes:
- alt
ignores:
- ':matches(code, pre)'
- 'code'
- 'pre'
- 'blockquote'
sources:
- '**/*.md'
- '**/*.md|!docs/software/perl.md'
default_encoding: utf-8
aspell:
lang: en
Loading

0 comments on commit 6f0dcbc

Please sign in to comment.