Skip to content

Commit

Permalink
chore(ci): check codespell in GA
Browse files Browse the repository at this point in the history
  • Loading branch information
jeertmans committed Oct 23, 2024
1 parent 26f681c commit fd7b2c2
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Check for common grammar and spelling mistakes
name: LanguageTool
name: Spelling

on:
pull_request:
Expand All @@ -23,3 +23,19 @@ jobs:
reporter: github-pr-review
patterns: '*.md src/**.rs python/differt/**.py docs/source/**.md docs/source/**.ipynb'
level: warning

codespell-jupyer:
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 {} +
8 changes: 1 addition & 7 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,4 @@ repos:
- id: codespell
additional_dependencies:
- tomli
exclude_types: [jupyter]
#- id: codespell
# entry: nbstripout "$@" > tmp & codespell tmp <&0
# additional_dependencies:
# - nbstripout
# - tomli
# types: [jupyter]
exclude_types: [jupyter] # GitHub action will run on Notebooks

0 comments on commit fd7b2c2

Please sign in to comment.