Skip to content

Commit 2bddbdb

Browse files
committed
Add codespell
1 parent 0ae484c commit 2bddbdb

File tree

6 files changed

+13
-7
lines changed

6 files changed

+13
-7
lines changed

.pre-commit-config.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ repos:
99
- id: black
1010

1111
- repo: https://github.com/astral-sh/ruff-pre-commit
12-
rev: v0.1.9
12+
rev: v0.1.11
1313
hooks:
1414
- id: ruff
1515
args: [--fix, --exit-non-zero-on-fix]
@@ -20,6 +20,12 @@ repos:
2020
- id: interrogate
2121
args: [tests]
2222

23+
- repo: https://github.com/codespell-project/codespell
24+
rev: v2.2.6
25+
hooks:
26+
- id: codespell
27+
args: [--exclude-file=tests/test_mypy.yml]
28+
2329
- repo: https://github.com/pre-commit/pre-commit-hooks
2430
rev: v4.5.0
2531
hooks:

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ See https://github.com/python-attrs/attrs/blob/main/.github/CONTRIBUTING.md#chan
5454

5555
- The support for *zope-interface* via the `attrs.validators.provides` validator is now deprecated and will be removed in, or after, April 2024.
5656

57-
The presence of a C-based package in our developement dependencies has caused headaches and we're not under the impression it's used a lot.
57+
The presence of a C-based package in our development dependencies has caused headaches and we're not under the impression it's used a lot.
5858

5959
Let us know if you're using it and we might publish it as a separate package.
6060
[#1120](https://github.com/python-attrs/attrs/issues/1120)

docs/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,12 +162,12 @@
162162
"attrs Documentation",
163163
"Hynek Schlawack",
164164
"attrs",
165-
"Python Clases Without Boilerplate",
165+
"Python Classes Without Boilerplate",
166166
"Miscellaneous",
167167
)
168168
]
169169

170-
epub_description = "Python Clases Without Boilerplate"
170+
epub_description = "Python Classes Without Boilerplate"
171171

172172
intersphinx_mapping = {"python": ("https://docs.python.org/3", None)}
173173

docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ glossary
8080
names
8181
license
8282
changelog
83-
Third-party Extentions <https://github.com/python-attrs/attrs/wiki/Extensions-to-attrs>
83+
Third-party Extensions <https://github.com/python-attrs/attrs/wiki/Extensions-to-attrs>
8484
PyPI <https://pypi.org/project/attrs/>
8585
Contributing <https://github.com/python-attrs/attrs/blob/main/.github/CONTRIBUTING.md>
8686
Funding <https://hynek.me/say-thanks/>

docs/init.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ Again, it's important that the decorated method doesn't have the same name as th
189189

190190
### Callables
191191

192-
If you want to re-use your validators, you should have a look at the `validator` argument to {func}`attrs.field`.
192+
If you want to reuse your validators, you should have a look at the `validator` argument to {func}`attrs.field`.
193193

194194
It takes either a callable or a list of callables (usually functions) and treats them as validators that receive the same arguments as with the decorator approach.
195195
Also as with the decorator approach, they are passed as *positional arguments* so you can name them however you want.

tests/test_packaging.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ def test_does_not_exist(self, mod):
125125

126126
def test_version_info(self, recwarn, mod):
127127
"""
128-
___version_info__ is not deprected, therefore doesn't raise a warning
128+
___version_info__ is not deprecated, therefore doesn't raise a warning
129129
and parses correctly.
130130
"""
131131
assert isinstance(mod.__version_info__, attr.VersionInfo)

0 commit comments

Comments
 (0)