Skip to content

Commit 30719df

Browse files
Add codespell pre-commit (#125)
1 parent 9fb51e9 commit 30719df

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

.pre-commit-config.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,8 @@ repos:
2929
- id: ruff
3030
args: ["--fix", "--show-fixes", "--exit-non-zero-on-fix"]
3131
- id: ruff-format
32+
33+
- repo: https://github.com/codespell-project/codespell
34+
rev: "193cd7d27cd571f79358af09a8fb8997e54f8fff" # frozen: v2.3.0
35+
hooks:
36+
- id: codespell

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ see release notes for v0.2rc0 below for details.
112112
- Update year [\#43](https://github.com/scientific-python/lazy-loader/pull/43) ([jarrodmillman](https://github.com/jarrodmillman))
113113
- Update GH actions [\#42](https://github.com/scientific-python/lazy-loader/pull/42) ([jarrodmillman](https://github.com/jarrodmillman))
114114
- Update pre-commit [\#41](https://github.com/scientific-python/lazy-loader/pull/41) ([jarrodmillman](https://github.com/jarrodmillman))
115-
- Update optional depedencies [\#40](https://github.com/scientific-python/lazy-loader/pull/40) ([jarrodmillman](https://github.com/jarrodmillman))
115+
- Update optional dependencies [\#40](https://github.com/scientific-python/lazy-loader/pull/40) ([jarrodmillman](https://github.com/jarrodmillman))
116116
- Fix extension substitution to work with `\*.pyc` files [\#39](https://github.com/scientific-python/lazy-loader/pull/39) ([Czaki](https://github.com/Czaki))
117117
- Sort returned \_\_all\_\_ [\#34](https://github.com/scientific-python/lazy-loader/pull/34) ([stefanv](https://github.com/stefanv))
118118

lazy_loader/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def __getattr__(self, x):
112112
fd = self.__frame_data
113113
raise ModuleNotFoundError(
114114
f"{self.__message}\n\n"
115-
"This error is lazily reported, having originally occured in\n"
115+
"This error is lazily reported, having originally occurred in\n"
116116
f' File {fd["filename"]}, line {fd["lineno"]}, in {fd["function"]}\n\n'
117117
f'----> {"".join(fd["code_context"] or "").strip()}'
118118
)

0 commit comments

Comments
 (0)