You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+34-19Lines changed: 34 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,9 @@ Welcome to the Nipype repository! We're excited you're here and want to contribu
5
5
These guidelines are designed to make it as easy as possible to get involved. If you have any questions that aren't discussed below, please let us know by opening an [issue][link_issues]!
6
6
7
7
Before you start you'll need to set up a free [GitHub][link_github] account and sign in. Here are some [instructions][link_signupinstructions].
8
+
If you are not familiar with version control systems such as git,
9
+
[introductions and tutorials](http://www.reproducibleimaging.org/module-reproducible-basics/02-vcs/)
10
+
may be found on [ReproducibleImaging.org](https://www.reproducibleimaging.org/).
8
11
9
12
Already know what you're looking for in this guide? Jump to the following sections:
10
13
*[Understanding issue labels](#issue-labels)
@@ -55,31 +58,39 @@ This allows other members of the Nipype development team to confirm that you are
55
58
56
59
**2. [Fork][link_fork] the [Nipype repository][link_nipype] to your profile.**
57
60
58
-
This is now your own unique copy of Nipype.
61
+
This is now your own unique copy of the Nipype repository.
59
62
Changes here won't affect anyone else's work, so it's a safe space to explore edits to the code!
60
63
61
-
Make sure to [keep your fork up to date][link_updateupstreamwiki] with the master repository.
64
+
You can clone your Nipype repository in order to create a local copy of the code on your machine.
65
+
To install your version of Nipype, and the dependencies needed for development,
66
+
in your Python environment, run `pip install -e ".[dev]"` from your local Nipype
67
+
directory.
68
+
69
+
Make sure to keep your fork up to date with the original Nipype repository.
70
+
One way to do this is to [configure a new remote named "upstream"](https://help.github.com/articles/configuring-a-remote-for-a-fork/)
71
+
and to [sync your fork with the upstream repository][link_updateupstreamwiki].
62
72
63
73
**3. Make the changes you've discussed.**
64
74
65
-
If you're adding a new tool from an existing neuroimaging toolkit (e.g., 3dDeconvolve from AFNI), check out the [guide for adding new interfaces to Nipype][link_new_interfaces].
75
+
If you're adding a new tool from an existing neuroimaging toolkit (e.g., 3dDeconvolve from AFNI),
76
+
check out the [guide for adding new interfaces to Nipype][link_new_interfaces].
66
77
67
-
To confirm that your changes worked as intended, [clone your fork][link_cloning] to create a local directory.
68
-
In this local directory, run `pip install -e .[dev]`.
69
-
This will add your version of nipype to your local python environment and
70
-
install dependencies needed for development.
78
+
When you are working on your changes, test frequently to ensure you are not breaking the existing code.
79
+
For more on testing, please see [the testing section of Nipype documentation](http://nipype.readthedocs.io/en/latest/devel/testing_nipype.html).
71
80
72
-
Then, in this local nipype directory, run `make check-before-commit`. If you get no errors, you're ready to submit your changes!
81
+
Before pushing your changes to GitHub, run `make check-before-commit`. This will remove trailing spaces, create new auto tests,
82
+
test the entire package, and build the documentation.
83
+
If you get no errors, you're ready to submit your changes!
73
84
74
-
**4. Submit a [pull request][link_pullrequest].**
85
+
It's a good practice to create [a new branch](https://help.github.com/articles/about-branches/)
86
+
of the repository for a new set of changes.
75
87
76
-
Submit a new pull request for your changes, using the tags outlined in the [tagging pull requests section](#tagging-pull-requests).
77
88
78
-
A member of the development team will review your changes to confirm that they can be merged into the main codebase.
89
+
**4. Submit a [pull request][link_pullrequest].**
79
90
80
-
## Tagging Pull Requests
91
+
A new pull request for your changes should be created from your fork of the repository.
81
92
82
-
Pull requests should be submitted early and often! When opening a pull request, please use one of the following prefixes:
93
+
When opening a pull request, please use one of the following prefixes:
83
94
84
95
85
96
***[ENH]** for enhancements
@@ -90,11 +101,14 @@ Pull requests should be submitted early and often! When opening a pull request,
90
101
***[REF]** for refactoring existing code
91
102
92
103
<br>
93
-
94
-
If, when you submit, your pull request is not yet ready to be merged, please also include the **[WIP]** prefix. This tells the development team that your pull request is a "work-in-progress", and that you plan to continue working on it.
104
+
Pull requests should be submitted early and often (please don't mix too many unrelated changes within one PR)!
105
+
If your pull request is not yet ready to be merged, please also include the **[WIP]** prefix (you can remove it once your PR is ready to be merged).
106
+
This tells the development team that your pull request is a "work-in-progress", and that you plan to continue working on it.
95
107
96
108
Review and discussion on new code can begin well before the work is complete, and the more discussion the better!
97
-
In the worst case scenario, if the development team decides to pursue a different path than you've outlined, they'll close the pull request. That's really not so bad! :smile:
109
+
The development team may prefer a different path than you've outlined, so it's better to discuss it and get approval at the early stage of your work.
110
+
111
+
One your PR is ready a member of the development team will review your changes to confirm that they can be merged into the main codebase.
98
112
99
113
## Notes for New Code
100
114
@@ -107,8 +121,9 @@ Do not log this, as it creates redundant/confusing logs.
107
121
108
122
#### Testing
109
123
New code should be tested, whenever feasible.
110
-
Bug fixes should include regression tests, and any new behavior should at least get minimal exercise.
111
-
If you're not sure what this means for your code, ask!
124
+
Bug fixes should include an example that exposes the issue.
125
+
Any new features should have tests that show at least a minimal example.
126
+
If you're not sure what this means for your code, please ask in your pull request.
0 commit comments