mirror of
https://github.com/rasbt/LLMs-from-scratch.git
synced 2026-04-10 12:33:42 +00:00
fix typos, add codespell pre-commit hook (#264)
* fix typos, add codespell pre-commit hook * Update .pre-commit-config.yaml --------- Co-authored-by: Sebastian Raschka <mail@sebastianraschka.com>
This commit is contained in:
17
.pre-commit-config.yaml
Normal file
17
.pre-commit-config.yaml
Normal file
@@ -0,0 +1,17 @@
|
||||
# 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$
|
||||
Reference in New Issue
Block a user