Repository navigation
Skip station corrections in codespell - #1623
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Breaking change
None. Tooling only.
Proposed change
Four correction PRs fail on codespell, and none of the findings are typos:
datas ==> data: a folder in the logo URLs of croonerradio.fr (Correct stations from United States, from radio-database #1607, Correct stations from France, from radio-database #1609)SER ==> SET: the station Cadena SER (Correct stations from Spain, from radio-database #1615)traditionnal ==> traditional: a tag in the Radio Browser data of Ecclesia Radio (Correct stations from Greece, from radio-database #1612)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/**/*.jsonfrom the codespell hook, which is also what CI runs. The files are still validated by the schema tests intests/test_corrections.py.Verified with the files of the four failing PRs staged: codespell passes with this change.
Type of change
Additional information
Checklist
poetry run pytestpasses locally. A pull request cannot be merged unless CI is green.poetry run prek run --all-filespasses (lint, format, and type checks).