Python: Fix linting issues

The following Flake8 issues were fixed:

* W291
* W504

* F821
* F401
* F541

* E402
* E711
This commit is contained in:
Martin Thoma
2022-03-14 13:13:20 +01:00
parent 8b16a70d32
commit 0ba0307767
16 changed files with 48 additions and 50 deletions

View File

@@ -117,13 +117,13 @@ def think(board, g, h, moves):
if g == OccupiedBy.PLAYER:
j = 3 * int((moves - 1) / 3)
if move == j + 1:
if move == j + 1: # noqa: This definitely is a bug!
k = 1
if move == j + 2:
if move == j + 2: # noqa: This definitely is a bug!
k = 2
if move == j + 3:
if move == j + 3: # noqa: This definitely is a bug!
k = 3
return subthink(g, h, j, k)
return subthink(g, h, j, k) # noqa: This definitely is a bug!
def render_board(board, space_mapping):