Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,6 @@ repos:
rev: v10.0.1
hooks:
- id: cspell
language_version: 25.9.0

- repo: https://github.com/editorconfig-checker/editorconfig-checker.python
rev: 3.6.1
Expand Down
2 changes: 1 addition & 1 deletion src/compwa_policy/format/cspell.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def _update_precommit_repo(precommit: ModifiablePrecommit) -> None:
expected_hook = Repo(
repo=__REPO_URL,
rev="",
hooks=[Hook(id="cspell", language_version="25.9.0")],
hooks=[Hook(id="cspell")],
)
precommit.update_single_hook_repo(expected_hook)

Expand Down
4 changes: 2 additions & 2 deletions tests/format/test_precommit.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ def allows_updating_a_hook_after_sorting():
expected = Repo(
repo="https://github.com/streetsidesoftware/cspell-cli",
rev="v10.0.1",
hooks=[Hook(id="cspell", language_version="25.9.0")],
hooks=[Hook(id="cspell", args=["--gitignore"])],
)
with _load("""
repos:
Expand All @@ -202,7 +202,7 @@ def allows_updating_a_hook_after_sorting():
""") as pc:
precommit._sort_hooks(pc)
pc.update_single_hook_repo(expected)
assert "language_version: 25.9.0" in pc.dumps()
assert "args:\n - --gitignore" in pc.dumps()


def describe_update_precommit_ci():
Expand Down
Loading