Skip to content

Fix typos in docs, code and comments and "typos" to pre-commit#4512

Merged
frjo merged 2 commits intomainfrom
typos
Apr 21, 2025
Merged

Fix typos in docs, code and comments and "typos" to pre-commit#4512
frjo merged 2 commits intomainfrom
typos

Conversation

@theskumar
Copy link
Copy Markdown
Member

This package is quite fast and has very low false positives.

Given the number typos worth keeping it was able to find, I think it will be quite helpful for it to be part of our pre-commit and lint pipeline. It's quite easy to add new spellings or regex-based ignore rules.

The exclusion and typo rules can be add to pyproject.yml.

Read more at https://github.com/crate-ci/typos

@theskumar theskumar requested a review from frjo April 19, 2025 19:30
@frjo
Copy link
Copy Markdown
Member

frjo commented Apr 21, 2025

I get this error:

django.db.migrations.exceptions.InconsistentMigrationHistory: Migration application_projects.0043_remove_project_approval_form is applied before its dependency funds.0089_remove_project_approval_form_references on database 'default'.

@theskumar theskumar force-pushed the typos branch 2 times, most recently from f6fa55a to a3d6331 Compare April 21, 2025 07:22
@theskumar
Copy link
Copy Markdown
Member Author

@frjo can you give it a try again?

@frjo
Copy link
Copy Markdown
Member

frjo commented Apr 21, 2025

@theskumar Issues fixed.

It's satisfying to see these spelling fixes!

Nice addition to pre-commit so we catch the misspellings early.

@frjo frjo added Type: Enhancement This is an improvement of an existing thing (not a new thing, which would be a feature). Type: Patch Mini change, used in release drafter labels Apr 21, 2025
@theskumar theskumar self-assigned this Apr 21, 2025
@theskumar
Copy link
Copy Markdown
Member Author

I was a bit surprised by how many issues it was able to find—no false positives, except at the obvious paths that are excluded now.

The PR is rebased now.

Used pyproject.yml to file exclusions

This packages is quite fast and has very low false positives.

Given the number typos worth keeping it was able to find, I think it
will be quite helpful for it to be part of our pre-commit and lint
pipeline. It's quite easy to add new spellings or regex based ignore
rules.

https://github.com/crate-ci/typos
@frjo frjo merged commit 38cd629 into main Apr 21, 2025
7 checks passed
@theskumar theskumar deleted the typos branch April 21, 2025 08:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Type: Enhancement This is an improvement of an existing thing (not a new thing, which would be a feature). Type: Patch Mini change, used in release drafter

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants