2013-11-29 13:26:55 -05:00
|
|
|
Python Enhancement Proposals
|
|
|
|
============================
|
|
|
|
|
2022-03-10 03:27:31 -05:00
|
|
|
.. image:: https://github.com/python/peps/actions/workflows/render.yml/badge.svg
|
2021-12-03 09:59:24 -05:00
|
|
|
:target: https://github.com/python/peps/actions
|
2016-08-10 12:38:18 -04:00
|
|
|
|
2013-11-29 13:26:55 -05:00
|
|
|
The PEPs in this repo are published automatically on the web at
|
2022-03-10 03:27:31 -05:00
|
|
|
https://peps.python.org/. To learn more about the purpose of PEPs and how to go
|
|
|
|
about writing one, please start reading at :pep:`1`. Note that the PEP Index
|
|
|
|
(:pep:`0`) is automatically generated based on the metadata headers in other PEPs.
|
2013-11-29 13:26:55 -05:00
|
|
|
|
|
|
|
|
2018-07-09 17:01:48 -04:00
|
|
|
Contributing to PEPs
|
|
|
|
====================
|
|
|
|
|
|
|
|
See the `Contributing Guidelines <./CONTRIBUTING.rst>`_.
|
|
|
|
|
|
|
|
|
2018-04-27 04:21:50 -04:00
|
|
|
Checking PEP formatting and rendering
|
|
|
|
=====================================
|
2013-11-29 13:34:39 -05:00
|
|
|
|
2022-02-21 19:03:58 -05:00
|
|
|
Please don't commit changes with reStructuredText syntax errors that cause PEP
|
|
|
|
generation to fail, or result in major rendering defects relative to what you
|
2022-03-10 03:27:31 -05:00
|
|
|
intend.
|
2021-06-30 19:56:07 -04:00
|
|
|
|
|
|
|
|
2022-03-10 03:27:31 -05:00
|
|
|
Render PEPs locally
|
|
|
|
-------------------
|
2021-06-30 19:56:07 -04:00
|
|
|
|
2022-03-10 03:27:31 -05:00
|
|
|
See the `build documentation <./docs/build.rst>`__ for full
|
|
|
|
instructions on how to render PEPs locally. In summary:
|
2022-02-22 13:44:07 -05:00
|
|
|
|
2022-02-26 20:05:16 -05:00
|
|
|
.. code-block:: bash
|
2022-02-22 13:44:07 -05:00
|
|
|
|
2022-03-10 03:27:31 -05:00
|
|
|
# Install requirements
|
|
|
|
python -m pip install -U -r requirements.txt
|
2021-06-30 19:56:07 -04:00
|
|
|
|
2022-03-10 03:27:31 -05:00
|
|
|
# Render the PEPs
|
|
|
|
make render
|
2021-06-30 19:56:07 -04:00
|
|
|
|
2022-03-10 03:27:31 -05:00
|
|
|
# or, if you don't have 'make':
|
|
|
|
python3 build.py
|
2021-06-30 19:56:07 -04:00
|
|
|
|
|
|
|
|
2022-03-10 03:27:31 -05:00
|
|
|
The output HTML is found under the ``build`` directory.
|
2021-06-30 19:56:07 -04:00
|
|
|
|
|
|
|
|
2022-03-10 03:27:31 -05:00
|
|
|
PEP draughting aids
|
|
|
|
-------------------
|
2021-06-30 19:56:07 -04:00
|
|
|
|
2022-03-10 03:27:31 -05:00
|
|
|
You can check for and fix common linting and spelling issues,
|
|
|
|
either on-demand or automatically as you commit, with our pre-commit suite.
|
|
|
|
See the `Contributing Guide <./CONTRIBUTING.rst>`_ for details.
|