Repository navigation
Add codespell for documentation to pre-commit - #3709
Merged
Merged
Conversation
This would make adopting the continuous integration service less disruptive - although having their bot apply black on pull requests is worth considering.
Codecov Report
@@ Coverage Diff @@
## master #3709 +/- ##
=======================================
Coverage 82.03% 82.03%
=======================================
Files 296 296
Lines 49577 49577
=======================================
Hits 40670 40670
Misses 8907 8907
Continue to review full report at Codecov.
|
mdehoon
approved these changes
Sep 7, 2021
Merged
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.
I hereby agree to dual licence this and any previous contributions under both
the Biopython License Agreement AND the BSD 3-Clause License.
I have read the
CONTRIBUTING.rstfile, have runpre-commitlocally,and understand that AppVeyor and TravisCI will be used to confirm the Biopython unit
tests and style checks pass with these changes.
I have added my name to the alphabetical contributors listings in the files
NEWS.rstandCONTRIB.rstas part of this pull request, am listedalready, or do not wish to be listed. (This acknowledgement is optional.)
Builds on recent work using codespell to catch and fix various typos in Biopython. By adding codespell to the pre-commit checks on the documentation (only, for now) we should reduce the number of new typos added.
This is configured to check
*.rst,*.mdand*.texfiles only (hard to do directly with codespell, easy in pre-commit), uses a regex to ignore 2 and 3 letter upper case acronyms, and ignores a handful of words.Note there are still plenty of typos in the code, but also many more false positives from codespell.