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 docsig as a pre-commit hook #2580

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from
Draft

Conversation

namurphy
Copy link
Member

docsig is a tool to check signature params for proper documentation." Applying this would be another check on our documentation.

I'm leaning towards excluding tests from this check, largely because a test docstring is sometimes unnecessary if the name of the test fully indicates what the test is doing (i.e., when the name of the function is almost identical to what the docstring one-liner would say).

I'm creating this PR as a placeholder for later, since we probably want to fix problems with docstrings in more targeted PRs.

@github-actions github-actions bot added CI Related to continuous integration linters Code linters and autoformatters labels Mar 13, 2024
@github-actions github-actions bot added the packaging Related to packaging or distribution label Mar 14, 2024
Copy link

codecov bot commented Mar 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.18%. Comparing base (2a6cf7f) to head (bd5cd33).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2580   +/-   ##
=======================================
  Coverage   95.18%   95.18%           
=======================================
  Files         103      103           
  Lines        9412     9412           
  Branches     2153     2153           
=======================================
  Hits         8959     8959           
  Misses        276      276           
  Partials      177      177           

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

@github-actions github-actions bot added docs PlasmaPy Docs at http://docs.plasmapy.org contributor guide labels Mar 15, 2024
@namurphy namurphy added this to the Future milestone Apr 9, 2024
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://docs.plasmapy.org linters Code linters and autoformatters packaging Related to packaging or distribution
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant