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

Use "general" verb form in docstrings #2376

Merged
merged 60 commits into from
Mar 12, 2023
Merged

Use "general" verb form in docstrings #2376

merged 60 commits into from
Mar 12, 2023

Conversation

yvonnefroehlich
Copy link
Member

Description of proposed changes

This PR aims to use more consistently the "general" verb form in the docstrings.

Fixes: #2345 (comment)
Related to GMT upstream documentation: GenericMappingTools/gmt@a57fd6c, GenericMappingTools/gmt@8256073

Reminders

  • Run make format and make check to make sure the code follows the style guide.
  • Add tests for new features or tests that would have caught the bug that you're fixing.
  • Add new public functions/methods/classes to doc/api/index.rst.
  • Write detailed docstrings for all functions/methods.
  • If wrapping a new module, open a 'Wrap new GMT module' issue and submit reasonably-sized PRs.
  • If adding new functionality, add an example to docstrings or tutorials.
  • Use underscores (not hyphens) in names of Python files and directories.

Slash Commands

You can write slash commands (/command) in the first line of a comment to perform
specific operations. Supported slash commands are:

  • /format: automatically format and lint the code
  • /test-gmt-dev: run full tests on the latest GMT development version

@yvonnefroehlich yvonnefroehlich added documentation Improvements or additions to documentation skip-changelog Skip adding Pull Request to changelog labels Feb 18, 2023
@yvonnefroehlich yvonnefroehlich added this to the 0.9.0 milestone Feb 18, 2023
@yvonnefroehlich yvonnefroehlich self-assigned this Feb 18, 2023
@yvonnefroehlich yvonnefroehlich marked this pull request as draft February 18, 2023 15:08
@yvonnefroehlich yvonnefroehlich marked this pull request as ready for review March 9, 2023 21:26
@yvonnefroehlich
Copy link
Member Author

No guarantee I found all occurrences... Thanks for reviewing this PR.

@GenericMappingTools/pygmt-maintainers should there be a separate PR for the other docstring changes in this PR or is leaving these changes in this PR fine?

@yvonnefroehlich yvonnefroehlich added the needs review This PR has higher priority and needs review. label Mar 9, 2023
@yvonnefroehlich yvonnefroehlich changed the title WIP: Use "general" verb form in docstrings Use "general" verb form in docstrings Mar 10, 2023
@seisman seisman added final review call This PR requires final review and approval from a second reviewer and removed needs review This PR has higher priority and needs review. labels Mar 11, 2023
@@ -231,8 +231,9 @@ def meca(
determined by the z-value (i.e., event depth or the third column for
an input file).
no_clip : bool
Does NOT skip symbols that fall outside frame boundary specified by
``region`` [Default is False, i.e. plot symbols inside map frame only].
Do NOT skip symbols that fall outside frame boundary specified by
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
Do NOT skip symbols that fall outside frame boundary specified by
Do NOT skip symbols that fall outside the frame boundary specified by

Copy link
Member Author

Choose a reason for hiding this comment

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

@michaelgrund in commit 2f94dd5 I tried to make the docstrings for no_clip more consistent across the single methods.

pygmt/src/meca.py Outdated Show resolved Hide resolved
@seisman seisman merged commit c0f17ef into main Mar 12, 2023
@seisman seisman deleted the use-general-verbform-docs branch March 12, 2023 10:46
@seisman seisman removed the final review call This PR requires final review and approval from a second reviewer label Mar 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation skip-changelog Skip adding Pull Request to changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants