diff --git a/pep-9999.rst b/pep-9999.rst index 156c7fa0bd0..ee09209e5bb 100644 --- a/pep-9999.rst +++ b/pep-9999.rst @@ -159,9 +159,11 @@ tables. These requirement lists are described with the same as Reference implementation ======================== -Tools will need to convert this format to :pep`508` requirement strings. Below +Tools will need to convert this format to :pep:`508` requirement strings. Below is an example implementation of that conversion (assuming validation is already -performed):: +performed): + +.. code-block:: python def convert_requirement_to_pep508(name, requirement): if isinstance(requirement, str): @@ -205,7 +207,9 @@ performed):: Examples ======== -Full example:: +Full example: + +.. code-block:: toml [project.dependencies] flask = {} @@ -220,7 +224,9 @@ Full example:: ] In homage to :pep:`631`, the following is an equivalent dependencies -specification for `docker-compose`_:: +specification for `docker-compose`_: + +.. code-block:: toml [project.dependencies] cached-property = '>= 1.2.0, < 2'