-
-
Notifications
You must be signed in to change notification settings - Fork 2
42 lines (35 loc) · 1.3 KB
/
spelling.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Check for common grammar and spelling mistakes
name: Spelling
on:
pull_request:
workflow_dispatch:
jobs:
languagetool-check:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Strip cell output
run: |
pip install nbstripout
find . -name '*.ipynb' -exec nbstripout {} +
- name: Check and report
uses: reviewdog/action-languagetool@v1
with:
reporter: github-pr-review
patterns: '*.md src/**.rs python/differt/**.py docs/source/**.md docs/source/**.ipynb'
level: warning
disabled_rules: WHITESPACE_RULE,EN_UNPAIRED_QUOTES,EN_QUOTES,DASH_RULE,WORD_CONTAINS_UNDERSCORE,UPPERCASE_SENTENCE_START,ARROWS,COMMA_PARENTHESIS_WHITESPACE,UNLIKELY_OPENING_PUNCTUATION,SENTENCE_WHITESPACE,CURRENCY,EN_UNPAIRED_BRACKETS,PHRASE_REPETITION,PUNCTUATION_PARAGRAPH_END,METRIC_UNITS_EN_US,ENGLISH_WORD_REPEAT_BEGINNING_RULE
codespell-jupyter:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Strip cell output
run: |
pip install nbstripout
find . -name '*.ipynb' -exec nbstripout {} +
- name: Run codespell
run: |
pip install codespell tomli
find . -name '*.ipynb' -exec codespell {} +