Skip to content

Skip station corrections in codespell - #1623

Merged
frenck merged 1 commit into
mainfrom
frenck/codespell-skip-corrections
Oct 2, 2026
Merged

frenck merged 1 commit into
mainfrom
frenck/codespell-skip-corrections

Conversation

@frenck

@frenck frenck commented Oct 2, 2026

Copy link
Copy Markdown
Owner

Breaking change

None. Tooling only.

Proposed change

Four correction PRs fail on codespell, and none of the findings are typos:

The correction files hold station names, tags and URLs in many languages, not English prose, so every new batch would run into this again. This excludes src/radios/corrections/**/*.json from the codespell hook, which is also what CI runs. The files are still validated by the schema tests in tests/test_corrections.py.

Verified with the files of the four failing PRs staged: codespell passes with this change.

Type of change

  • Dependency or tooling upgrade
  • Bugfix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Deprecation (replaces or removes a feature, with a migration path)
  • Breaking change (a fix or feature that changes existing behavior)
  • Code quality, refactor, or test-only change
  • Documentation only

Additional information

Checklist

  • I fully understand the code in this pull request and can explain every line, including any AI-assisted changes.
  • The change is covered by tests, and poetry run pytest passes locally. A pull request cannot be merged unless CI is green.
  • poetry run prek run --all-files passes (lint, format, and type checks).
  • No commented-out or dead code is left in the pull request.

The corrections hold station names, tags and URLs in many languages,
which codespell reads as English typos: "Cadena SER", a "datas" folder in
a logo URL. The schema tests check those files instead.
@frenck frenck added the maintenance Generic maintenance tasks. label Oct 2, 2026
@frenck
frenck merged commit 2fac977 into main Oct 2, 2026
31 checks passed
@frenck
frenck deleted the frenck/codespell-skip-corrections branch October 2, 2026 11:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintenance Generic maintenance tasks.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant