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:
Jeroen Van Goey
2024-07-16 14:07:04 +02:00
committed by GitHub
parent 3b79631672
commit 70cfced899
5 changed files with 21 additions and 4 deletions

17
.pre-commit-config.yaml Normal file
View 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$