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

Update region and projection standard docstrings #1510

Merged
merged 8 commits into from
Oct 12, 2021
Merged

Conversation

willschlitzer
Copy link
Contributor

This pull request modifies the COMMON_OPTIONS text for region and projection. It also adds that it is requirement for certain plotting commands to individual modules. This partially addresses #1493.

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 adding new functionality, add an example to docstrings or tutorials.

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

@willschlitzer willschlitzer added the documentation Improvements or additions to documentation label Sep 14, 2021
@willschlitzer willschlitzer added this to the 0.5.0 milestone Sep 14, 2021
@willschlitzer willschlitzer self-assigned this Sep 14, 2021
pygmt/src/histogram.py Outdated Show resolved Hide resolved
pygmt/src/solar.py Outdated Show resolved Hide resolved
@seisman
Copy link
Member

seisman commented Sep 15, 2021

The doctest in

*Required if this is the first plot command*.
fails. You need to remove the text *Required if this is the first plot command*. from the fmt_docstring doctest.

@weiji14 weiji14 mentioned this pull request Sep 27, 2021
19 tasks
@willschlitzer willschlitzer mentioned this pull request Oct 7, 2021
35 tasks
@weiji14 weiji14 added the final review call This PR requires final review and approval from a second reviewer label Oct 8, 2021
pygmt/src/basemap.py Outdated Show resolved Hide resolved
pygmt/src/coast.py Outdated Show resolved Hide resolved
pygmt/src/text.py Outdated Show resolved Hide resolved
Copy link
Member

@seisman seisman left a comment

Choose a reason for hiding this comment

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

Looks good to me after applying @meghanrjones's suggestions.

@weiji14 weiji14 merged commit dd2b374 into main Oct 12, 2021
@weiji14 weiji14 deleted the rj-required-docstring branch October 12, 2021 02:51
@weiji14 weiji14 removed the final review call This PR requires final review and approval from a second reviewer label Oct 12, 2021
sixy6e pushed a commit to sixy6e/pygmt that referenced this pull request Dec 21, 2022
…#1510)

Modify the COMMON_OPTIONS text for region and projection to
remove the "Required if this is the first plot command" text, but
adding it solely to `basemap`, `coast` and `text` where it is actually
required.

Co-authored-by: Meghan Jones <[email protected]>
Co-authored-by: Dongdong Tian <[email protected]>
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants