@@ -170,18 +170,18 @@ also welcome to post feature requests or pull requests.
170
170
171
171
If you are reporting a bug, please do your best to include the following:
172
172
173
- 1 . A short, top-level summary of the bug. In most cases, this should be 1-2
173
+ # . A short, top-level summary of the bug. In most cases, this should be 1-2
174
174
sentences.
175
175
176
- 2 . A short, self-contained code snippet to reproduce the bug, ideally allowing
176
+ # . A short, self-contained code snippet to reproduce the bug, ideally allowing
177
177
a simple copy and paste to reproduce. Please do your best to reduce the code
178
178
snippet to the minimum required.
179
179
180
- 3 . The actual outcome of the code snippet.
180
+ # . The actual outcome of the code snippet.
181
181
182
- 4 . The expected outcome of the code snippet.
182
+ # . The expected outcome of the code snippet.
183
183
184
- 5 . The Matplotlib version, Python version and platform that you are using. You
184
+ # . The Matplotlib version, Python version and platform that you are using. You
185
185
can grab the version with the following commands::
186
186
187
187
>>> import matplotlib
@@ -229,52 +229,54 @@ contribute to Matplotlib.
229
229
230
230
A brief overview of the workflow is as follows.
231
231
232
- 1 . `Create an account <https://github.com/join >`_ on GitHub if you do not
232
+ # . `Create an account <https://github.com/join >`_ on GitHub if you do not
233
233
already have one.
234
234
235
- 2 . Fork the `project repository <https://github.com/matplotlib/matplotlib >`_:
236
- click on the ' Fork' button near the top of the page. This creates a copy of
237
- the code under your account on the GitHub server.
235
+ # . Fork the `project repository <https://github.com/matplotlib/matplotlib >`_ by
236
+ clicking on the :octicon: ` repo-forked ` ** Fork ** button near the top of the page.
237
+ This creates a copy of the code under your account on the GitHub server.
238
238
239
- .. tab-set : :
239
+ #. Set up a development environment :
240
240
241
- .. tab-item :: Local development
241
+ .. tab-set ::
242
242
243
- 3. Clone this copy to your local disk::
243
+ .. tab-item :: Local development
244
244
245
- git clone https://github.com/<YOUR GITHUB USERNAME>/matplotlib.git
245
+ Clone this copy to your local disk::
246
246
247
- .. tab-item :: Using GitHub Codespaces
247
+ git clone https://github.com/<YOUR GITHUB USERNAME>/matplotlib.git
248
248
249
- 3. Check out the Matplotlib repository and activate your development
250
- environment:
249
+ .. tab-item :: Using GitHub Codespaces
251
250
252
- * Open codespaces on your fork by clicking on the green "Code" button
251
+ Check out the Matplotlib repository and activate your development environment:
252
+
253
+ #. Open codespaces on your fork by clicking on the green "Code" button
253
254
on the GitHub web interface and selecting the "Codespaces" tab.
254
- * Next, click on "Open codespaces on <your branch name>". You will be
255
+
256
+ #. Next, click on "Open codespaces on <your branch name>". You will be
255
257
able to change branches later, so you can select the default
256
258
``main `` branch.
257
- * After the codespace is created, you will be taken to a new browser
259
+
260
+ #. After the codespace is created, you will be taken to a new browser
258
261
tab where you can use the terminal to activate a pre-defined conda
259
262
environment called ``mpl-dev ``::
260
263
261
- conda activate mpl-dev
262
-
264
+ conda activate mpl-dev
263
265
264
266
265
- 4 . Install the local version of Matplotlib with::
267
+ # . Install the local version of Matplotlib with::
266
268
267
269
python -m pip install -e .
268
270
269
271
See :ref:`installing_for_devs` for detailed instructions.
270
272
271
- 5 . Create a branch to hold your changes::
273
+ # . Create a branch to hold your changes::
272
274
273
275
git checkout -b my-feature origin/main
274
276
275
277
and start making changes. Never work in the ``main`` branch!
276
278
277
- 6 . Work on this task using Git to do the version control. Codespaces persist for
279
+ # . Work on this task using Git to do the version control. Codespaces persist for
278
280
some time (check the `documentation for details
279
281
<https://docs.github.com/codespaces/getting-started/the-codespace-lifecycle> `_)
280
282
and can be managed on https://github.com/codespaces. When you're done editing
@@ -301,11 +303,11 @@ GitHub Codespaces workflows
301
303
<https://github.com/devcontainers/features/tree/main/src/desktop-lite> `_.
302
304
You can use it by connecting to this desktop via your web browser. To do this:
303
305
304
- 1 . Press ``F1 `` or ``Ctrl/Cmd+Shift+P `` and select
306
+ # . Press ``F1 `` or ``Ctrl/Cmd+Shift+P `` and select
305
307
``Ports: Focus on Ports View `` in the VSCode session to bring it into
306
308
focus. Open the ports view in your tool, select the ``noVNC `` port, and
307
309
click the Globe icon.
308
- 2 . In the browser that appears, click the Connect button and enter the desktop
310
+ # . In the browser that appears, click the Connect button and enter the desktop
309
311
password (``vscode `` by default).
310
312
311
313
Check the `GitHub instructions
@@ -391,10 +393,11 @@ Rules
391
393
Introducing
392
394
~~~~~~~~~~~
393
395
394
- 1 . Announce the deprecation in a new file
396
+ # . Announce the deprecation in a new file
395
397
:file: `doc/api/next_api_changes/deprecations/99999-ABC.rst ` where ``99999 ``
396
398
is the pull request number and ``ABC `` are the contributor's initials.
397
- 2. If possible, issue a `~matplotlib.MatplotlibDeprecationWarning ` when the
399
+
400
+ #. If possible, issue a `~matplotlib.MatplotlibDeprecationWarning ` when the
398
401
deprecated API is used. There are a number of helper tools for this:
399
402
400
403
- Use ``_api.warn_deprecated() `` for general deprecation warnings
@@ -411,7 +414,7 @@ Introducing
411
414
412
415
You can use standard rst cross references in *alternative *.
413
416
414
- 3 . Make appropriate changes to the type hints in the associated ``.pyi `` file.
417
+ # . Make appropriate changes to the type hints in the associated ``.pyi `` file.
415
418
The general guideline is to match runtime reported behavior.
416
419
417
420
- Items marked with ``@_api.deprecated `` or ``@_api.deprecate_privatize_attribute ``
@@ -431,15 +434,17 @@ Introducing
431
434
Expiring
432
435
~~~~~~~~
433
436
434
- 1 . Announce the API changes in a new file
437
+ # . Announce the API changes in a new file
435
438
:file: `doc/api/next_api_changes/[kind]/99999-ABC.rst ` where ``99999 ``
436
439
is the pull request number and ``ABC `` are the contributor's initials, and
437
440
``[kind] `` is one of the folders :file: `behavior `, :file: `development `,
438
441
:file: `removals `. See :file: `doc/api/next_api_changes/README.rst ` for more
439
442
information. For the content, you can usually copy the deprecation notice
440
443
and adapt it slightly.
441
- 2. Change the code functionality and remove any related deprecation warnings.
442
- 3. Make appropriate changes to the type hints in the associated ``.pyi `` file.
444
+
445
+ #. Change the code functionality and remove any related deprecation warnings.
446
+
447
+ #. Make appropriate changes to the type hints in the associated ``.pyi `` file.
443
448
444
449
- Items marked with ``@_api.deprecated `` or ``@_api.deprecate_privatize_attribute ``
445
450
are to be removed on expiry.
0 commit comments