diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index df1831443..93cda30a4 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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] @@ -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: diff --git a/CHANGELOG.md b/CHANGELOG.md index 8fea39db4..e964462df 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/docs/conf.py b/docs/conf.py index b92354a6f..c00d9a204 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -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)} diff --git a/docs/index.md b/docs/index.md index ad92b5a39..b99ec9599 100644 --- a/docs/index.md +++ b/docs/index.md @@ -80,7 +80,7 @@ glossary names license changelog -Third-party Extentions +Third-party Extensions PyPI Contributing Funding diff --git a/docs/init.md b/docs/init.md index 4aaa09995..b7d674f09 100644 --- a/docs/init.md +++ b/docs/init.md @@ -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. diff --git a/tests/test_packaging.py b/tests/test_packaging.py index 046ae4c39..5a2fdb269 100644 --- a/tests/test_packaging.py +++ b/tests/test_packaging.py @@ -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)