Skip to content

Commit 9da2cbf

Browse files
authored
Remove outdated linter markup (#2334)
1 parent 0f58ed5 commit 9da2cbf

File tree

13 files changed

+11
-23
lines changed

13 files changed

+11
-23
lines changed

arcade/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ def configure_logging(level: int | None = None):
5757
else:
5858
os.environ["PATH"] += str(lib_location)
5959

60-
# noinspection PyPep8
6160
import pyglet
6261

6362

arcade/examples/gl/spritelist_interaction_bouncing_coins.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ def on_draw(self):
138138
self.coins.draw()
139139

140140
# Swap things around for next frame
141-
self.buffer_velocity_1, self.buffer_velocity_2 = self.buffer_velocity_2, self.buffer_velocity_1 # noqa
141+
(self.buffer_velocity_1, self.buffer_velocity_2) = self.buffer_velocity_2, self.buffer_velocity_1 # noqa
142142
self.geometry_1, self.geometry_2 = self.geometry_2, self.geometry_1
143143

144144
def on_update(self, delta_time: float):

arcade/examples/perspective.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# flake8: noqa
21
"""
32
Perspective example using the lower level rendering API.
43
@@ -78,8 +77,8 @@ def __init__(self):
7877
data=array(
7978
'f',
8079
[
81-
# x y z u v
82-
-1, 1, 0, 0, 1, # Top Left
80+
# x y z u v
81+
-1, 1, 0, 0, 1, # Top Left
8382
-1, -1, 0, 0, 0, # Bottom Left
8483
1, 1, 0, 1, 1, # Top Right
8584
1, -1, 0, 1, 0, # Bottom right

arcade/examples/sprite_move_controller.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,17 +79,14 @@ def update(self, delta_time: float = 1 / 60):
7979
elif self.top > SCREEN_HEIGHT - 1:
8080
self.top = SCREEN_HEIGHT - 1
8181

82-
# noinspection PyMethodMayBeStatic
8382
def on_button_press(self, controller, button_name):
8483
""" Handle button-down event for the controller """
8584
print(f"Button {button_name} down")
8685

87-
# noinspection PyMethodMayBeStatic
8886
def on_button_release(self, controller, button_name):
8987
""" Handle button-up event for the controller """
9088
print(f"Button {button_name} up")
9189

92-
# noinspection PyMethodMayBeStatic
9390
def on_stick_motion(self, controller, stick_name, x, y):
9491
""" Handle hat events """
9592
print(f"Movement on stick {stick_name}: ({x}, {y})")

arcade/examples/tetris.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
If Python and Arcade are installed, this example can be run from the command line with:
88
python -m arcade.examples.tetris
99
"""
10-
# flake8: noqa: E241
1110
import arcade
1211
import random
1312
import PIL
@@ -234,7 +233,6 @@ def on_key_press(self, key, modifiers):
234233
elif key == arcade.key.DOWN:
235234
self.drop()
236235

237-
# noinspection PyMethodMayBeStatic
238236
def draw_grid(self, grid, offset_x, offset_y):
239237
"""
240238
Draw the grid. Used to draw the falling stones. The board is drawn

arcade/future/input/inputs.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -272,14 +272,12 @@ class Keys(InputEnum):
272272
F = 102
273273
G = 103
274274
H = 104
275-
# noinspection PyPep8
276275
I = 105
277276
J = 106
278277
K = 107
279278
L = 108
280279
M = 109
281280
N = 110
282-
# noinspection PyPep8
283281
O = 111
284282
P = 112
285283
Q = 113

arcade/gui/widgets/layout.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -702,8 +702,8 @@ def do_layout(self):
702702

703703
max_height_per_row[row_num][col_num] = (child.height, row_span)
704704

705-
for row in child_sorted_row_wise[row_num : row_num + row_span]: # noqa: E203
706-
row[col_num : col_num + col_span] = [child] * col_span # noqa: E203
705+
for row in child_sorted_row_wise[row_num : row_num + row_span]:
706+
row[col_num : col_num + col_span] = [child] * col_span
707707

708708
principal_height_ratio_list = []
709709
principal_width_ratio_list = []

arcade/key/__init__.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# flake8: noqa
21
"""
32
Constants used to signify what keys on the keyboard were pressed.
43
"""
@@ -203,14 +202,12 @@
203202
F = 102
204203
G = 103
205204
H = 104
206-
# noinspection PyPep8
207205
I = 105
208206
J = 106
209207
K = 107
210208
L = 108
211209
M = 109
212210
N = 110
213-
# noinspection PyPep8
214211
O = 111
215212
P = 112
216213
Q = 113

arcade/management/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@ def show_info():
3333
print("version:", window.ctx.gl_version)
3434
print("python:", sys.version)
3535
print("platform:", sys.platform)
36-
# The next line uses noqa because pyglet's .pyi is out of date
37-
print("pyglet version:", pyglet.__version__) # pyright: ignore # noqa
36+
print("pyglet version:", pyglet.version)
3837
print("PIL version:", PIL.__version__)
3938

4039

arcade/sprite/base.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -809,5 +809,4 @@ def collides_with_list(self: SpriteType, sprite_list: "SpriteList") -> list[Spri
809809
"""
810810
from arcade import check_for_collision_with_list
811811

812-
# noinspection PyTypeChecker
813812
return check_for_collision_with_list(self, sprite_list)

arcade/sprite_list/sprite_list.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,6 @@ def _init_deferred(self) -> None:
247247

248248
# Load all the textures and write texture coordinates into buffers.
249249
for sprite in self.sprite_list:
250-
# noinspection PyProtectedMember
251250
if sprite._texture is None:
252251
raise ValueError("Attempting to use a sprite without a texture")
253252
self._update_texture(sprite)

arcade/tilemap/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from __future__ import annotations
22

3-
from .tilemap import TileMap, load_tilemap, read_tmx # noqa
3+
from .tilemap import TileMap, load_tilemap, read_tmx
44

55
__all__ = ["TileMap", "load_tilemap", "read_tmx"]

arcade/tilemap/tilemap.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,10 @@ def _get_tile_by_gid(self, tile_gid: int) -> pytiled_parser.Tile | None:
410410
continue
411411

412412
# No specific tile info, but there is a tile sheet
413-
# print(f"data {tileset_key} {tileset.tiles} {tileset.image} {tileset_key} {tile_gid} {tileset.tile_count}") # noqa
413+
# print(
414+
# f"data {tileset_key} {tileset.tiles} {tileset.image} "
415+
# f"{tileset_key} {tile_gid} {tileset.tile_count}"
416+
# )
414417
if (
415418
tileset.image is not None
416419
and tileset_key <= tile_gid < tileset_key + tileset.tile_count

0 commit comments

Comments
 (0)