`_.
- * Formatting should follow `PEP8 recommendation
- `_. You should consider
- installing/enabling automatic PEP8 checking in your editor. Part of the
- test suite is checking PEP8 compliance, things go smoother if the code is
- mostly PEP8 compliant to begin with.
+* Formatting should follow the recommendations of `PEP8
+ `__. You should consider
+ installing/enabling automatic PEP8 checking in your editor. Part of the test
+ suite is checking PEP8 compliance, things go smoother if the code is mostly
+ PEP8 compliant to begin with.
- * Each high-level plotting function should have a simple example in
- the ``Example`` section of the docstring. This should be as simple as
- possible to demonstrate the method. More complex examples should go
- in the ``examples`` tree.
+* Each high-level plotting function should have a simple example in the
+ ``Example`` section of the docstring. This should be as simple as possible
+ to demonstrate the method. More complex examples should go in the
+ ``examples`` tree.
- * Changes (both new features and bugfixes) should be tested. See
- :ref:`testing` for more details.
+* Changes (both new features and bugfixes) should be tested. See :ref:`testing`
+ for more details.
- * Import the following modules using the standard scipy conventions::
+* Import the following modules using the standard scipy conventions::
- import numpy as np
- import numpy.ma as ma
- import matplotlib as mpl
- import matplotlib.pyplot as plt
- import matplotlib.cbook as cbook
- import matplotlib.patches as mpatches
+ import numpy as np
+ import numpy.ma as ma
+ import matplotlib as mpl
+ import matplotlib.pyplot as plt
+ import matplotlib.cbook as cbook
+ import matplotlib.patches as mpatches
- * If your change is a major new feature, add an entry to the ``What's new``
- section by adding a new file in ``doc/users/whats_new`` (see
- :file:`doc/users/whats_new/README` for more information).
+* If your change is a major new feature, add an entry to the ``What's new``
+ section by adding a new file in ``doc/users/next_whats_new`` (see
+ :file:`doc/users/next_whats_new/README.rst` for more information).
- * If you change the API in a backward-incompatible way, please
- document it in `doc/api/api_changes`, by adding a new file describing your
- changes (see :file:`doc/api/api_changes/README` for more information)
+* If you change the API in a backward-incompatible way, please document it in
+ `doc/api/api_changes`, by adding a new file describing your changes (see
+ :file:`doc/api/api_changes/README.rst` for more information)
- * See below for additional points about
- :ref:`keyword-argument-processing`, if code in your pull request
- does that.
+* See below for additional points about :ref:`keyword-argument-processing`, if
+ applicable for your pull request.
In addition, you can check for common programming errors with the following
tools:
- * Code with a good unittest coverage (at least 70%, better 100%), check
- with::
+* Code with a good unittest coverage (at least 70%, better 100%), check with::
- python -mpip install coverage
- python tests.py --with-coverage
+ python -mpip install coverage
+ python tests.py --with-coverage
- * No pyflakes warnings, check with::
+* No pyflakes warnings, check with::
- python -mpip install pyflakes
- pyflakes path/to/module.py
+ python -mpip install pyflakes
+ pyflakes path/to/module.py
.. note::
pFad - Phonifier reborn
Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies:
Alternative Proxy
pFad Proxy
pFad v3 Proxy
pFad v4 Proxy