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
+33-17Lines changed: 33 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,7 @@ local disk:
19
19
$ cd openml-python
20
20
```
21
21
22
-
3.Swith to the ``develop`` branch:
22
+
3.Switch to the ``develop`` branch:
23
23
24
24
```bash
25
25
$ git checkout develop
@@ -31,7 +31,8 @@ local disk:
31
31
$ git checkout -b feature/my-feature
32
32
```
33
33
34
-
Always use a ``feature`` branch. It's good practice to never work on the ``master`` or ``develop`` branch! To make the nature of your pull request easily visible, please perpend the name of the branch with the type of changes you want to merge, such as ``feature`` if it contains a new feature, ``fix`` for a bugfix, ``doc`` for documentation and ``maint`` for other maintenance on the package.
34
+
Always use a ``feature`` branch. It's good practice to never work on the ``master`` or ``develop`` branch!
35
+
To make the nature of your pull request easily visible, please prepend the name of the branch with the type of changes you want to merge, such as ``feature`` if it contains a new feature, ``fix`` for a bugfix, ``doc`` for documentation and ``maint`` for other maintenance on the package.
35
36
36
37
4. Develop the feature on your feature branch. Add changed files using ``git add`` and then ``git commit`` files:
37
38
@@ -59,18 +60,25 @@ We recommended that your contribution complies with the
- The max line length is 100 characters instead of 80.
66
+
- When creating a multi-line expression with binary operators, break before the operator.
67
+
- Add type hints to all function signatures.
68
+
(note: not all functions have type hints yet, this is work in progress.)
69
+
- Use the [`str.format`](https://docs.python.org/3/library/stdtypes.html#str.format) over [`printf`](https://docs.python.org/3/library/stdtypes.html#printf-style-string-formatting) style formatting.
70
+
E.g. use `"{} {}".format('hello', 'world')` not `"%s %s" % ('hello', 'world')`.
71
+
(note: old code may still use `printf`-formatting, this is work in progress.)
63
72
64
73
- If your pull request addresses an issue, please use the pull request title
65
74
to describe the issue and mention the issue number in the pull request description. This will make sure a link back to the original issue is
66
75
created.
67
76
68
77
- An incomplete contribution -- where you expect to do more work before
69
-
receiving a full review -- should be prefixed `[WIP]` (to indicate a work
70
-
in progress) and changed to `[MRG]` when it matures. WIPs may be useful
78
+
receiving a full review -- should be submitted as a `draft`. These may be useful
71
79
to: indicate you are working on something to avoid duplicated work,
72
80
request broad review of functionality or API, or seek collaborators.
0 commit comments