Skip to content

Commit

Permalink
Merge pull request #56 from shaleh/patch-1
Browse files Browse the repository at this point in the history
Add some examples to the README.
  • Loading branch information
graingert committed Jun 17, 2019
2 parents 8ec550f + 7776ede commit 32647a9
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,18 @@ errors for languages you don't use in your flake8 config:
+------+-----------------------------------------+
| C819 | trailing comma prohibited |
+------+-----------------------------------------+

Examples
--------

.. code:: Python
lookup_table = {
'key1': 'value',
'key2': 'something' # <-- missing a trailing comma
}
json_data = json.dumps({
"key": "value",
}), # <-- incorrect trailing comma. json_data is now a tuple. Likely by accident.

0 comments on commit 32647a9

Please sign in to comment.