Skip to content

Commit d44633e

Browse files
Merge pull request #1188 from RonnyPfannschmidt/codespell-own
add codespell pre-commit hook
2 parents b89979f + 73491bd commit d44633e

File tree

4 files changed

+16
-9
lines changed

4 files changed

+16
-9
lines changed

.cursor/rules/test-running.mdc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
description: run tests wit uv tooling
2+
description: run tests with uv tooling
33
globs:
44
alwaysApply: true
55
---

.pre-commit-config.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,9 @@ repos:
3131
rev: 2025.05.02
3232
hooks:
3333
- id: sp-repo-review
34+
35+
- repo: https://github.com/codespell-project/codespell
36+
rev: v2.3.0
37+
hooks:
38+
- id: codespell
39+
args: [-w, --ignore-words-list=hist,nd,te]

CHANGELOG.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,15 @@
66
### Fixed
77

88
- fix #1180: ensure version dumping works when no scm_version is given (problems in downstreams)
9-
- fix #1181: config - reintroduce controll over when we expect a section to be present
10-
as it turns out theres valid use cases where setuptools_scm is not direct part of the dependencies
9+
- fix #1181: config - reintroduce control over when we expect a section to be present
10+
as it turns out there's valid use cases where setuptools_scm is not direct part of the dependencies
11+
- add codespell pre-commit hook
1112

1213
## v9.0.0
1314

1415
### Breaking
1516

16-
- fix #1019: pass python version build tags from scm version to results propperly
17+
- fix #1019: pass python version build tags from scm version to results properly
1718

1819
### Added
1920

@@ -38,7 +39,7 @@
3839
- fix #1150: enable setuptools-scm when we are a build requirement
3940
- feature #1154: add the commit id the the default version file template
4041
- drop scriv
41-
- fix #921: document setuptools version requirements more consistently - 61 as minumum asn 8 as recommended minimum
42+
- fix #921: document setuptools version requirements more consistently - 61 as minimum asn 8 as recommended minimum
4243

4344
### Fixed
4445

@@ -51,7 +52,7 @@
5152
- fix #879: add test that validates case different behavior on windows
5253
- migrate git describe command to new scm config
5354
- add support for failing on missing submodules
54-
- fix #279: expand errors when scm can be found upwards and relative_to wasnt used
55+
- fix #279: expand errors when scm can be found upwards and relative_to wasn't used
5556
- fix #577: introduce explicit scmversion node and short node
5657
- fix #1100: add workaround for readthedocs worktress to the docs
5758
- fix #790: document shallow fail for rtd
@@ -72,7 +73,7 @@
7273

7374
### Fixed
7475

75-
- fixed #1131: allow self-build without importlib_metadata avaliable on python3.9
76+
- fixed #1131: allow self-build without importlib_metadata available on python3.9
7677

7778
## v8.3.0
7879

testing/test_version.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -514,13 +514,13 @@ def local(self) -> str | None:
514514
def test_no_matching_entrypoints(config_key: str) -> None:
515515
version = meta(
516516
"1.0",
517-
config=replace(c, **{config_key: "nonexistant"}), # type: ignore[arg-type]
517+
config=replace(c, **{config_key: "nonexistent"}), # type: ignore[arg-type]
518518
)
519519
with pytest.raises(
520520
ValueError,
521521
match=(
522522
r'Couldn\'t find any implementations for entrypoint "setuptools_scm\..*?"'
523-
' with value "nonexistant"'
523+
' with value "nonexistent"'
524524
),
525525
):
526526
format_version(version)

0 commit comments

Comments
 (0)