From 3bebf86a78900bffaf09e9cb06b6a7bb41481540 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20K=C3=A4ufl?= Date: Mon, 23 Mar 2020 10:41:54 +0100 Subject: [PATCH] Add syntax highlighting to python blocks in readme --- README.rst | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/README.rst b/README.rst index 8c0476a..a2f9078 100644 --- a/README.rst +++ b/README.rst @@ -10,7 +10,9 @@ Flake8 Builtins plugin ====================== Check for python builtins being used as variables or parameters. -Imagine some code like this:: +Imagine some code like this: + +.. code:: Python def max_values(list, list2): max = list[0] @@ -47,7 +49,9 @@ the general approach is to **not** do that as code then can suddenly break witho Example ------- -Given the following code:: +Given the following code: + +.. code:: Python def my_method(object, list, dict): max = 5