@@ -3,33 +3,101 @@ Contributing
3
3
4
4
Thank you for your interest in contributing!
5
5
6
+
6
7
Issues
7
8
------
8
9
9
- When reporting a bug, please include:
10
+ Hopefully you are arriving from
11
+ [ the documentation] ( https://wpull.readthedocs.io/ ) . If not, please take
12
+ a moment to read it. Updated documentation is provided on "latest"
13
+ version.
14
+
15
+ When reporting a bug or asking a question, please search to see if your
16
+ bug report exists or your question has been already answered.
17
+
18
+ When opening an issue, include lots of details about your problem and
19
+ information that we can use to reproduce the problem. There are many
20
+ resources that describe how to file a good bug report such as
21
+ < https://developer.mozilla.org/en-US/docs/Mozilla/QA/Bug_writing_guidelines > .
10
22
11
- 1 . What you want, what you expect, what happened.
12
- 2 . The command or website causes the problem
13
- 3 . Operating system
14
- 4 . Python version
15
- 5 . Wpull version
16
- 6 . A copy and paste of what Wpull prints out
23
+ Concisely, we need to know:
24
+
25
+ * What you want
26
+ * What you expect
27
+ * What happened
28
+ * Commands to reproduce the issue
29
+ * Program versions
30
+ * Your computer details
31
+ * Debugging output
32
+
33
+ When you file an issue, a template should appear for you to fill out.
17
34
18
35
19
36
Pull requests
20
37
-------------
21
38
22
- Before making a pull request, please review the following:
39
+ If you are planning to fix a bug or add a feature, please take some
40
+ time to review this section.
41
+
42
+
43
+ ### Code convention
44
+
45
+ Please follow the [ PEP8] ( https://www.python.org/dev/peps/pep-0008/ )
46
+ conventions whenever possible.
47
+
48
+ If the current code does not follow it, please do not make
49
+ a pull request that formats all the code with a program automatically.
50
+ Instead, incrementally make the corrections that are affected in your
51
+ bug fixes or features. This will help make Git's blame feature easier
52
+ use.
53
+
54
+
55
+ ### Commits and commit messages
56
+
57
+ Please don't PR a single huge commit or hundreds of commits. Do your
58
+ best to group changes logically.
59
+
60
+ Give your commit messages meaningful descriptions. Make the first line
61
+ a short title describing the changes and then add an optional paragraph
62
+ describing why you made those changes.
63
+
64
+
65
+ ### Branch model
66
+
67
+ This project is still small but we intend to follow
68
+ [ nvie's git branching model]
69
+ (http://nvie.com/posts/a-successful-git-branching-model/ ) to structure
70
+ the Git repository in the future. This means:
71
+
72
+ * The stable code is located on the ` master ` branch which is the default.
73
+ * The current work of focus is located on the ` develop ` branch.
74
+ * There is currently no release branches.
75
+ * Changes flow into the ` develop ` branch, then the ` master ` branch.
76
+
77
+ Because of the branching model, there are two options of branching:
78
+
79
+ * From a stable point, that is the ` master ` branch
80
+ * From an active point, that is a the ` develop ` branch
81
+
82
+ If you are making a small bug fix and are new to this project, we
83
+ suggest branching off the ` master ` branch so we can integrate your
84
+ changes properly. Otherwise, branch off the ` develop ` branch.
85
+
86
+ If you are adding a feature, please branch from the ` develop ` branch.
87
+ If you branch from ` master ` , your changes may not merge anymore on the
88
+ next release. If needed, file an issue to discuss the roadmap of the
89
+ feature to avoid any rejection and disappointment.
90
+
91
+ One branch per bug/feature. Don't stack PR on top of other PR branches!
92
+
23
93
24
- 1 . Your branch is branched from the ` master ` branch or a release tag.
25
- 2 . You want to merge into the ` develop ` branch.
26
- 3 . Commits are logical units of changes.
27
- 4 . Commit messages are usefully descriptive.
28
- 5 . Unit tests are modified or appended as needed.
29
- 6 . Inline documentation is accurate.
30
- 7 . A rationale for the pull request is provided.
94
+ ### Making the PR
31
95
32
- We follow [ nvie's git branching
33
- model] ( http://nvie.com/posts/a-successful-git-branching-model/ ) and
34
- PEP8 code style.
96
+ When you file a pull request, a template will appear reminding you
97
+ of this document. It will also remind you to:
35
98
99
+ * Update or add unit tests if needed.
100
+ * Update or add documentation/comments if needed.
101
+ * Describe * what* you changed and * why* you changed them.
102
+ * Set GitHub merge options to merge into ` develop ` if you branch
103
+ from ` develop ` .
0 commit comments