Skip to content

Add codespell for documentation to pre-commit - #3709

Merged
peterjc merged 3 commits into
biopython:masterfrom
peterjc:precommit_sp
Sep 7, 2021
Merged

peterjc merged 3 commits into
biopython:masterfrom
peterjc:precommit_sp

Conversation

@peterjc

@peterjc peterjc commented Sep 3, 2021

Copy link
Copy Markdown
Member
  • 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.rst file, have run pre-commit locally,
    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.rst and CONTRIB.rst as part of this pull request, am listed
    already, 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, *.md and *.tex files 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.

This would make adopting the continuous integration
service less disruptive - although having their bot
apply black on pull requests is worth considering.
@codecov

codecov Bot commented Sep 3, 2021 •

Copy link
Copy Markdown

Codecov Report

Merging #3709 (e592b43) into master (f77df01) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #3709   +/-   ##
=======================================
  Coverage   82.03%   82.03%           
=======================================
  Files         296      296           
  Lines       49577    49577           
=======================================
  Hits        40670    40670           
  Misses       8907     8907           
Impacted Files Coverage Δ
Bio/SubsMat/__init__.py 79.53% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f77df01...e592b43. Read the comment docs.

@peterjc
peterjc merged commit 942a097 into biopython:master Sep 7, 2021
@peterjc
peterjc deleted the precommit_sp branch September 7, 2021 15:16
@peterjc peterjc mentioned this pull request May 1, 2024
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