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
Please avoid providing a pull request from your `master` and use **topic branches** instead; you can add as many commits
120
+
Please avoid providing a pull request from your ``master`` and use **topic branches** instead; you can add as many commits
121
121
as you want but please keep them in one branch which aims to solve one single issue. Then submit your pull request. To
122
122
create a topic branch, simply do::
123
123
@@ -129,7 +129,7 @@ When you're ready to submit your pull request, first push the topic branch to yo
129
129
git push origin fix-that-issue
130
130
131
131
Now you can go to your repository dashboard on GitHub and open a pull request starting from your topic branch. You can
132
-
apply your pull request to the `master` branch of django-oauth-toolkit (this should be the default behaviour of GitHub
132
+
apply your pull request to the ``master`` branch of django-oauth-toolkit (this should be the default behaviour of GitHub
133
133
user interface).
134
134
135
135
When you begin your PR, you'll be asked to provide the following:
@@ -150,29 +150,29 @@ When you begin your PR, you'll be asked to provide the following:
150
150
151
151
* Update the documentation (in `docs/`) to describe the new or changed functionality.
152
152
153
-
* Update `CHANGELOG.md` (only for user relevant changes). We use `Keep A Changelog <https://keepachangelog.com/en/1.0.0/>`_
153
+
* Update ``CHANGELOG.md`` (only for user relevant changes). We use `Keep A Changelog <https://keepachangelog.com/en/1.0.0/>`_
154
154
format which categorizes the changes as:
155
155
156
-
* `Added` for new features.
156
+
* ``Added`` for new features.
157
157
158
-
* `Changed` for changes in existing functionality.
158
+
* ``Changed`` for changes in existing functionality.
159
159
160
-
* `Deprecated` for soon-to-be removed features.
160
+
* ``Deprecated`` for soon-to-be removed features.
161
161
162
-
* `Removed` for now removed features.
162
+
* ``Removed`` for now removed features.
163
163
164
-
* `Fixed` for any bug fixes.
164
+
* ``Fixed`` for any bug fixes.
165
165
166
-
* `Security` in case of vulnerabilities. (Please report any security issues to the
167
-
JazzBand security team `<[email protected]>`. Do not file an issue on the tracker
166
+
* ``Security`` in case of vulnerabilities. (Please report any security issues to the
167
+
JazzBand security team ``<[email protected]>``. Do not file an issue on the tracker
168
168
or submit a PR until directed to do so.)
169
169
170
-
* Make sure your name is in `AUTHORS`. We want to give credit to all contributors!
170
+
* Make sure your name is in :file:`AUTHORS`. We want to give credit to all contributors!
171
171
172
172
If your PR is not yet ready to be merged mark it as a Work-in-Progress
173
-
By prepending `WIP:` to the PR title so that it doesn't get inadvertently approved and merged.
173
+
By prepending ``WIP:`` to the PR title so that it doesn't get inadvertently approved and merged.
174
174
175
-
Make sure to request a review by assigning Reviewer `jazzband/django-oauth-toolkit`.
175
+
Make sure to request a review by assigning Reviewer ``jazzband/django-oauth-toolkit``.
176
176
This will assign the review to the project team and a member will review it. In the meantime you can continue to add
177
177
commits to your topic branch (and push them up to GitHub) either if you see something that needs changing, or in
178
178
response to a reviewer's comments. If a reviewer asks for changes, you do not need to close the pull and reissue it
@@ -194,7 +194,7 @@ Then merge the changes that you fetched::
194
194
195
195
git merge upstream/master
196
196
197
-
For more info, see http://help.github.com/fork-a-repo/
197
+
For more information, see the `GitHub Docs on forking the repository <https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/fork-a-repo>`_.
198
198
199
199
.. note:: Please be sure to rebase your commits on the master when possible, so your commits can be fast-forwarded: we
200
200
try to avoid *merge commits* when they are not necessary.
@@ -209,7 +209,7 @@ The Checklist
209
209
210
210
A checklist template is automatically added to your PR when you create it. Make sure you've done all the
211
211
applicable steps and check them off to indicate you have done so. This is
212
-
what you'll see when creating your PR:
212
+
what you'll see when creating your PR::
213
213
214
214
Fixes #
215
215
@@ -251,7 +251,7 @@ You can check your coverage locally with the `coverage <https://pypi.org/project
251
251
pip install coverage
252
252
coverage html -d mycoverage
253
253
254
-
Open mycoverage/index.html in your browser and you can see a coverage summary and coverage details for each file.
254
+
Open :file:`mycoverage/index.html` in your browser and you can see a coverage summary and coverage details for each file.
255
255
256
256
There's no need to wait for Codecov to complain after you submit your PR.
257
257
@@ -263,8 +263,9 @@ Try reading our code and grasp the overall philosophy regarding method and varia
263
263
the sake of readability, keep in mind that *simple is better than complex*. If you feel the code is not straightforward,
264
264
add a comment. If you think a function is not trivial, add a docstrings.
265
265
266
-
To see if your code formatting will pass muster use: `tox -e flake8`
266
+
To see if your code formatting will pass muster use::
267
267
268
+
tox -e flake8
268
269
269
270
The contents of this page are heavily based on the docs from `django-admin2 <https://github.com/twoscoops/django-admin2>`_
270
271
@@ -301,14 +302,14 @@ and rtfd.io. This checklist is a reminder of the required steps.
301
302
to make them meaningful to users.
302
303
- Make a final PR for the release that updates:
303
304
304
-
- CHANGELOG to show the release date.
305
-
- `oauth2_provider/__init__.py` to set `__version__ = "..."`
305
+
- :file:`CHANGELOG.md` to show the release date.
306
+
- :file:`oauth2_provider/__init__.py` to set ``__version__ = "..."``
306
307
307
308
- Once the final PR is merged, create and push a tag for the release. You'll shortly
308
309
get a notification from Jazzband of the availability of two pypi packages (source tgz
309
310
and wheel). Download these locally before releasing them.
310
-
- Do a `tox -e build` and extract the downloaded and bullt wheel zip and tgz files into
311
-
temp directories and do a `diff -r` to make sure they have the same content.
311
+
- Do a ``tox -e build`` and extract the downloaded and built wheel zip and tgz files into
312
+
temp directories and do a ``diff -r`` to make sure they have the same content.
312
313
(Unfortunately the checksums do not match due to timestamps in the metadata
313
314
so you need to compare all the files.)
314
315
- Once happy that the above comparison checks out, approve the releases to Pypi.org.
0 commit comments