Python Enhancement Proposals ============================ .. image:: https://github.com/python/peps/actions/workflows/render.yml/badge.svg :target: https://github.com/python/peps/actions The PEPs in this repo are published automatically on the web at 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. Contributing to PEPs ==================== See the `Contributing Guidelines <./CONTRIBUTING.rst>`_. Checking PEP formatting and rendering ===================================== 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 intend. Render PEPs locally ------------------- See the `build documentation <./docs/build.rst>`__ for full instructions on how to render PEPs locally. In summary: .. code-block:: bash # Install requirements python -m pip install -U -r requirements.txt # Render the PEPs make render # or, if you don't have 'make': python3 build.py The output HTML is found under the ``build`` directory. Tools to lint PEPs ------------------ 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.