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
+17-11Lines changed: 17 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Contributing to Nipype
2
2
3
-
Welcome to the Nipype repository! We're excited you're here and want to contribute.
3
+
Welcome to the Nipype repository! We're excited you're here and want to contribute.
4
4
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
@@ -72,7 +72,7 @@ One way to do this is to [configure a new remote named "upstream"](https://help.
72
72
73
73
**3. Make the changes you've discussed.**
74
74
75
-
If you're adding a new tool from an existing neuroimaging toolkit (e.g., 3dDeconvolve from AFNI),
75
+
If you're adding a new tool from an existing neuroimaging toolkit (e.g., 3dDeconvolve from AFNI),
76
76
check out the [guide for adding new interfaces to Nipype][link_new_interfaces].
77
77
78
78
When you are working on your changes, test frequently to ensure you are not breaking the existing code.
@@ -82,27 +82,33 @@ Before pushing your changes to GitHub, run `make check-before-commit`. This will
82
82
test the entire package, and build the documentation.
83
83
If you get no errors, you're ready to submit your changes!
84
84
85
-
It's a good practice to create [a new branch](https://help.github.com/articles/about-branches/)
85
+
It's a good practice to create [a new branch](https://help.github.com/articles/about-branches/)
86
86
of the repository for a new set of changes.
87
87
88
88
89
89
**4. Submit a [pull request][link_pullrequest].**
90
90
91
91
A new pull request for your changes should be created from your fork of the repository.
92
92
93
-
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:
94
94
95
95
96
-
***[ENH]** for enhancements
97
-
***[FIX]** for bug fixes
98
-
***[TST]** for new or updated tests
99
-
***[DOC]** for new or updated documentation
100
-
***[STY]** for stylistic changes
101
-
***[REF]** for refactoring existing code
96
+
***[ENH]** for enhancements
97
+
***[FIX]** for bug fixes
98
+
***[TST]** for new or updated tests
99
+
***[DOC]** for new or updated documentation
100
+
***[STY]** for stylistic changes
101
+
***[REF]** for refactoring existing code
102
+
103
+
**5. Install pre-commit.**
104
+
105
+
[pre-commit](https://pre-commit.com/) is a git hook for running operations at commit time. To use it in
106
+
your environment, do `pip install pre-commit` following by `pre-commit install`
107
+
inside your source directory.
102
108
103
109
<br>
104
110
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).
111
+
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
112
This tells the development team that your pull request is a "work-in-progress", and that you plan to continue working on it.
107
113
108
114
Review and discussion on new code can begin well before the work is complete, and the more discussion the better!
0 commit comments