Skip to content

Commit

Permalink
Syntax highlighting (python#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
pradyunsg authored Sep 7, 2020
1 parent bdd34f5 commit 60d194d
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions pep-9999.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -205,7 +207,9 @@ performed)::
Examples
========

Full example::
Full example:

.. code-block:: toml
[project.dependencies]
flask = {}
Expand All @@ -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'
Expand Down

0 comments on commit 60d194d

Please sign in to comment.