From 1ed388afd4da23b40f87cca5b8d307351af0f1cc Mon Sep 17 00:00:00 2001 From: lukpueh Date: Tue, 1 Dec 2020 10:25:47 +0100 Subject: [PATCH] Fix typo and minor reword in python guide Co-authored-by: Marina Moore Co-authored-by: Joshua Lock --- python.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/python.md b/python.md index 360e730..614b034 100644 --- a/python.md +++ b/python.md @@ -2,7 +2,7 @@ There are many excellent Python style guides out there, usually based on [PEP 8](https://www.python.org/dev/peps/pep-0008/) -- the mother of all Python style -guides. Following the principle of reuse, we recommend an existing guides that +guides. Following the principle of reuse, we recommend an existing guide that we find suitable, and only add a few refinements and accentuation to it. In short: @@ -170,7 +170,7 @@ old `"...%s" % var`-notation. -- Avoid `if` and `else` keywords be separated by a lot of code. +- Avoid large vertical separation of `if` and `else` keywords. ```python # NO: if bizbaz: @@ -213,4 +213,3 @@ Write 90% tests. The test should make sure that it will catch 90% of the potential problems with the function. Avoid writing 50% tests (that only check a common case or two) and avoid writing 99.9% tests because it will consume too much of your time. -