Skip to content

Add more misspellings to the .python-version filename check#2051

Merged
edmorley merged 1 commit intomainfrom
misspellings-check-more
Mar 13, 2026
Merged

Add more misspellings to the .python-version filename check#2051
edmorley merged 1 commit intomainfrom
misspellings-check-more

Conversation

@edmorley
Copy link
Member

@edmorley edmorley commented Mar 13, 2026

Based on misspellings seen in Honeycomb, that affected more than one app.

Having this fixed list of misspellings isn't ideal (given there will be a long tail of misspellings not on it), however, short term it allows us to offer a very specific error message so the majority of apps are fixed by their owners, whilst still maintaining a low false positive rate (vs a looser regex).

Longer term we'll likely be making the .python-version file mandatory, at which point the error message for that can list out the files in the app source root (the same way we do for detection errors), which will help with the long tail cases. (We can also do things like replace unicode or stray whitespace in the file listing, to make those particularly-confusing-for-the-user cases easier to spot too.) See also here.

GUS-W-21320154.

Based on misspellings seen in Honeycomb, that affected more than
one app.

Having this fixed list of misspellings isn't ideal (given there will be a long
tail of misspellings not on it), however, short term it allows us to offer
a very specific error message so the majority of apps are fixed by their
owners, whilst still maintaining a low false positive rate (vs a looser regex).

Longer term we'll likely be making the `.python-version` file mandatory,
at which point the error message for that can list out the files in the app
source root (the same way we do for detection errors), which will help
with the long tail cases. (We can also do things like replace unicode or
stray whitespace in the file listing, to make those confusing for the user
cases easier to spot too.)

GUS-W-21320154.
@edmorley edmorley self-assigned this Mar 13, 2026
@edmorley edmorley marked this pull request as ready for review March 13, 2026 12:39
@edmorley edmorley requested a review from a team as a code owner March 13, 2026 12:39
@edmorley edmorley merged commit 9a9cb66 into main Mar 13, 2026
6 checks passed
@edmorley edmorley deleted the misspellings-check-more branch March 13, 2026 12:40
@heroku-linguist heroku-linguist bot mentioned this pull request Mar 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants