mirror of
https://github.com/rasbt/LLMs-from-scratch.git
synced 2025-10-27 15:59:49 +00:00
Gh workflow for spelling errors (#265)
* Gh workflow for spelling errors * add files to check
This commit is contained in:
parent
70cfced899
commit
311a3837e4
30
.github/workflows/check-spelling-errors.yml
vendored
Normal file
30
.github/workflows/check-spelling-errors.yml
vendored
Normal file
@ -0,0 +1,30 @@
|
||||
name: Spell Check
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
spellcheck:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.10'
|
||||
|
||||
- name: Install codespell
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install codespell
|
||||
|
||||
- name: Run codespell
|
||||
run: |
|
||||
codespell -L "ocassion,occassion,ot,te,tje" **/*.{txt,md,py,ipynb}
|
||||
@ -1,17 +0,0 @@
|
||||
# A tool used by developers to identify spelling errors in text.
|
||||
# Readers may ignore this file.
|
||||
|
||||
default_stages: [commit]
|
||||
|
||||
repos:
|
||||
- repo: https://github.com/codespell-project/codespell
|
||||
rev: v2.3.0
|
||||
hooks:
|
||||
- id: codespell
|
||||
name: codespell
|
||||
description: Check for spelling errors in text.
|
||||
entry: codespell
|
||||
language: python
|
||||
args:
|
||||
- "-L ocassion,occassion,ot,te,tje"
|
||||
files: \.txt$|\.md$|\.py|\.ipynb$
|
||||
Loading…
x
Reference in New Issue
Block a user