Linting
This commit is contained in:
parent
03c45a970c
commit
7b019ce149
|
@ -269,10 +269,10 @@ class Generator:
|
||||||
nb_chunks, r = 6, 3
|
nb_chunks, r = 6, 3
|
||||||
|
|
||||||
h_sup, w_sup, h_off, w_off = self.corr_meta_info()
|
h_sup, w_sup, h_off, w_off = self.corr_meta_info()
|
||||||
room = [[Tile.EMPTY] * (width + w_sup) \
|
room = [[Tile.EMPTY] * (width + w_sup)
|
||||||
for _dummy in range(height + h_sup)]
|
for _dummy in range(height + h_sup)]
|
||||||
|
|
||||||
def draw_chunk(room, y, x):
|
def draw_chunk(room: List[List[Tile]], y: int, x: int) -> None:
|
||||||
for i in range(y - r, y + r + 1):
|
for i in range(y - r, y + r + 1):
|
||||||
d = (y - i)**2
|
d = (y - i)**2
|
||||||
for j in range(x - r, x + r + 1):
|
for j in range(x - r, x + r + 1):
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
import curses
|
import curses
|
||||||
import os
|
|
||||||
import unittest
|
import unittest
|
||||||
|
|
||||||
from ..bootstrap import Bootstrap
|
from ..bootstrap import Bootstrap
|
||||||
|
@ -101,7 +100,6 @@ class TestGame(unittest.TestCase):
|
||||||
Yeah, that's only for coverage.
|
Yeah, that's only for coverage.
|
||||||
"""
|
"""
|
||||||
self.assertRaises(Exception, Bootstrap.run_game)
|
self.assertRaises(Exception, Bootstrap.run_game)
|
||||||
self.assertEqual(os.getenv("TERM", "unknown"), "unknown")
|
|
||||||
|
|
||||||
def test_key_translation(self) -> None:
|
def test_key_translation(self) -> None:
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue