Clean Code: Python

Fix issues found by flake8-bugbear:

* Unused loop variables
* assert statements in non-test code
* mixing test code with production code
* mark one excessive test which takes ~10min to run
  as 'slow'
This commit is contained in:
Martin Thoma
2022-03-18 14:58:25 +01:00
parent f7deaba4a1
commit f52d9a0e54
27 changed files with 97 additions and 57 deletions

View File

@@ -52,7 +52,7 @@ def main():
count = int(PAGE_WIDTH / width)
for down in range(count):
for _down in range(count):
print_diamond(1, width, 2, width, count)
print_diamond(width - 2, 1, -2, width, count)