diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6fb5590da..8937b4043 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -30,9 +30,8 @@ repos: args: [] additional_dependencies: [pyparsing, nox, orjson, 'pytest<9', tomli, tomli_w, types-invoke, httpx] - - repo: https://github.com/codespell-project/codespell - rev: "v2.4.1" + - repo: https://github.com/crate-ci/typos + rev: v1.40.0 hooks: - - id: codespell - additional_dependencies: - - tomli; python_version<'3.11' + - id: typos + args: [] diff --git a/pyproject.toml b/pyproject.toml index 153ba4eb5..fd05f06b6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -51,11 +51,16 @@ dev = [{ include-group = "test" }] include = ["tests/", "docs/", "CHANGELOG.rst"] exclude = ["docs/_build", "tests/manylinux/build-hello-world.sh", "tests/musllinux/build.sh", "tests/hello-world.c", "tests/__pycache__", "build/__pycache__"] -[tool.codespell] -ignore-words-list = [ - "dynamc", - "notin" -] +[tool.typos.default.extend-identifiers] +iMatix = "iMatix" +ANDed = "ANDed" +ORed = "ORed" + +[tool.typos.default.extend-words] +dynamc = "dynamc" +notin = "notin" +nd = "nd" +tou = "tou" [tool.coverage.run] branch = true diff --git a/src/packaging/metadata.py b/src/packaging/metadata.py index 43e8ead9d..253f6b1b7 100644 --- a/src/packaging/metadata.py +++ b/src/packaging/metadata.py @@ -129,7 +129,7 @@ class RawMetadata(TypedDict, total=False): # Metadata 2.3 - PEP 685 # No new fields were added in PEP 685, just some edge case were - # tightened up to provide better interoptability. + # tightened up to provide better interoperability. # Metadata 2.4 - PEP 639 license_expression: str