-
Notifications
You must be signed in to change notification settings - Fork 52
Contribution guide #84
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
Merged
Merged
Changes from 2 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
e3f5c60
added contribution guide, refined install instructions
btobers ded0a74
cite oggm
btobers 74b198d
v1.0.1->v1.0.2
btobers 7c0f406
Update docs/contributing.md
btobers 323e246
Apply suggestions from @ddundo
btobers e1b702d
install guide update
btobers 28c7cc1
contribution install cleanup
btobers 82f66fb
versioning note.
btobers File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| (contributing_pygem_target)= | ||
| # PyGEM Contribution Guide | ||
| ## General | ||
| - The branch `dev` is the repository's working branch and should (almost) always be the base branch of PRs. But exceptions exist: for example, hotfixes that need to be pushed to the `master` branch asap, updating the `README`, etc. | ||
btobers marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| - Do not push to other people's branches. Instead create a new branch and open a PR that merges your new branch into the branch you want to modify. | ||
|
|
||
| ## Issues | ||
| - Check whether an issue describing your problem already exists [here](https://github.com/PyGEM-Community/PyGEM/issues). | ||
| - Keep issues simple: try to describe only one problem per issue. Open multiple issues or sub-issues when appropriate. | ||
| - Label the issue with the appropriate label (e.g., bug, documentation, etc.). | ||
| - If you start working on an issue, assign it to yourself. No need to ask if you may assign it to yourself, unless there is someone already assigned to it. | ||
btobers marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| ## Pull requests (PRs) | ||
| - PRs should be submitted [here](https://github.com/PyGEM-Community/PyGEM/pulls). | ||
| - PRs should be linked to an issue that it addresses (unless it's a really minor fix when it's not worth opening a new issue). | ||
btobers marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| - PRs should generally address only one issue. This helps PRs stay shorter, which makes it easier to review. | ||
btobers marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| - Concisely describe what your PR does. Avoid repeating what was already said in the issue. | ||
| - Assign the PR to yourself. | ||
| - First open a Draft PR. Then think: | ||
| - Did you make all changes you wanted to make? | ||
| - Did you add tests for all new functionalities you added? | ||
| - The test suite should be automatically run (you can see the progress of it in the Checks tab of the PR). Do all tests pass? | ||
btobers marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| If the answer to all of the above is "yes", you can mark the PR as "Ready to review" and request a review from whoever you want to review it. | ||
btobers marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| - You will not be able to merge into `master` and `dev` branches without a reviewer's approval. | ||
|
|
||
| ### Reviewing PRs and responding to a review | ||
| - Reviewers should leave comments on appropriate lines. | ||
| - The original author of the PR should address all those comments by saying what they did and in what commit, so that it is easy to find. For example, a short response like "Fixed in commit https://github.com/PyGEM-Community/PyGEM/commit/ebddb9891efe60c747d3400b45627fb5d8e994f5" is often enough. | ||
| - After responding to a reviewer's comment, do not mark it as resolved. | ||
| - Once you address all comments, request a new review from the same reviewer. That reviewer should look at all responses and resolve the comments that they are now happy with. | ||
| - After you approve someone else's PR, do not merge it. Let the original author of the PR merge it when they are ready. They might notice last minute that more changes are necessary. | ||
btobers marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
This file was deleted.
Oops, something went wrong.
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| name: pygem | ||
| dependencies: | ||
| - python>=3.10,<3.13 | ||
| - pip | ||
| - pip: | ||
| - pygem |
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.
Uh oh!
There was an error while loading. Please reload this page.