Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add typos as a pre-commit hook #2700

Merged
merged 13 commits into from
May 28, 2024
Merged

Conversation

namurphy
Copy link
Member

@namurphy namurphy commented May 23, 2024

This PR tries out typos as a pre-commit hook as a possible addition to or replacement for codespell. It managed to find a couple more typos. Since it's written in Rust, it's probably quicker (though I didn't time it).

I'll tentatively add this as a hook without removing codespell, but we can consider removing one of them later if it gets annoying to have to deal with both.

Thanks to @nabobalis for suggesting this!

@github-actions github-actions bot added CI Related to continuous integration linters Code linters and autoformatters labels May 23, 2024
@github-actions github-actions bot added docs PlasmaPy Docs at http:https://docs.plasmapy.org contributor guide labels May 23, 2024
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@github-actions github-actions bot added plasmapy.plasma Related to the plasmapy.plasma subpackage testing plasmapy.utils Related to the plasmapy.utils subpackage notebooks Related to example Jupyter notebooks in docs/examples/ python Pull requests that update Python code labels May 23, 2024
Copy link

codecov bot commented May 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.25%. Comparing base (534b8e9) to head (f2e6831).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2700   +/-   ##
=======================================
  Coverage   95.25%   95.25%           
=======================================
  Files         104      104           
  Lines        9435     9435           
  Branches     2159     2159           
=======================================
  Hits         8987     8987           
  Misses        272      272           
  Partials      176      176           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@github-actions github-actions bot added the maintenance General updates to package infrastructure label May 23, 2024
_typos.toml Outdated
@@ -0,0 +1,19 @@
[default]
extend-ignore-identifiers-re = [

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you want these two sections?


[default.extend-words]
aas = "aas"
arange = "arange"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was such an annoying thing to have to add to our config as well.

@namurphy namurphy marked this pull request as ready for review May 28, 2024 21:42
@namurphy namurphy requested a review from a team as a code owner May 28, 2024 21:42
@namurphy namurphy requested review from pheuer and removed request for a team and pheuer May 28, 2024 21:42
@namurphy namurphy merged commit e4b3847 into PlasmaPy:main May 28, 2024
19 checks passed
@namurphy namurphy deleted the pre-commit-typos branch May 28, 2024 22:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI Related to continuous integration contributor guide docs PlasmaPy Docs at http:https://docs.plasmapy.org linters Code linters and autoformatters maintenance General updates to package infrastructure notebooks Related to example Jupyter notebooks in docs/examples/ plasmapy.plasma Related to the plasmapy.plasma subpackage plasmapy.utils Related to the plasmapy.utils subpackage python Pull requests that update Python code testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants