Skip to content

Commit

Permalink
Add codespell
Browse files Browse the repository at this point in the history
  • Loading branch information
hynek committed Jan 8, 2024
1 parent 0ae484c commit 2bddbdb
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 7 deletions.
8 changes: 7 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ repos:
- id: black

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

- repo: https://github.com/codespell-project/codespell
rev: v2.2.6
hooks:
- id: codespell
args: [--exclude-file=tests/test_mypy.yml]

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
Expand Down
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ See https://github.com/python-attrs/attrs/blob/main/.github/CONTRIBUTING.md#chan

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

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.
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.

Let us know if you're using it and we might publish it as a separate package.
[#1120](https://github.com/python-attrs/attrs/issues/1120)
Expand Down
4 changes: 2 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,12 +162,12 @@
"attrs Documentation",
"Hynek Schlawack",
"attrs",
"Python Clases Without Boilerplate",
"Python Classes Without Boilerplate",
"Miscellaneous",
)
]

epub_description = "Python Clases Without Boilerplate"
epub_description = "Python Classes Without Boilerplate"

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

Expand Down
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ glossary
names
license
changelog
Third-party Extentions <https://github.com/python-attrs/attrs/wiki/Extensions-to-attrs>
Third-party Extensions <https://github.com/python-attrs/attrs/wiki/Extensions-to-attrs>
PyPI <https://pypi.org/project/attrs/>
Contributing <https://github.com/python-attrs/attrs/blob/main/.github/CONTRIBUTING.md>
Funding <https://hynek.me/say-thanks/>
Expand Down
2 changes: 1 addition & 1 deletion docs/init.md
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ Again, it's important that the decorated method doesn't have the same name as th

### Callables

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

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.
Also as with the decorator approach, they are passed as *positional arguments* so you can name them however you want.
Expand Down
2 changes: 1 addition & 1 deletion tests/test_packaging.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def test_does_not_exist(self, mod):

def test_version_info(self, recwarn, mod):
"""
___version_info__ is not deprected, therefore doesn't raise a warning
___version_info__ is not deprecated, therefore doesn't raise a warning
and parses correctly.
"""
assert isinstance(mod.__version_info__, attr.VersionInfo)
Expand Down

0 comments on commit 2bddbdb

Please sign in to comment.