Skip to content

Commit b82e297

Browse files
authored
Merge pull request #357 from sourcebots/ruff-fix
Fix ruff rule update
2 parents 44648dc + a067931 commit b82e297

File tree

5 files changed

+13
-13
lines changed

5 files changed

+13
-13
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ Documentation = "https://docs.sourcebots.co.uk"
107107
[project.optional-dependencies]
108108
dev = [
109109
"poethepoet >=0.0.1,<1",
110-
"ruff >=0.9,<1",
110+
"ruff==0.9.8",
111111
"mypy==1.10.0; python_version<'3.9'",
112112
"mypy>=1.7,<2; python_version>='3.9'",
113113
"build",

sbot/historic/arduino.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ def _get_simulator_boards(cls) -> MappingProxyType[str, Arduino]:
131131
f"Board returned type {err.returned_type!r}, "
132132
f"expected {err.expected_type!r}. Ignoring this device")
133133
continue
134-
boards[board._identity.asset_tag] = board # noqa: SLF001
134+
boards[board._identity.asset_tag] = board
135135
return MappingProxyType(boards)
136136

137137
@classmethod
@@ -167,7 +167,7 @@ def _get_supported_boards(
167167
f"Board returned type {err.returned_type!r}, "
168168
f"expected {err.expected_type!r}. Ignoring this device")
169169
continue
170-
boards[board._identity.asset_tag] = board # noqa: SLF001
170+
boards[board._identity.asset_tag] = board
171171

172172
# Add any manually specified boards
173173
if isinstance(manual_boards, list):
@@ -190,7 +190,7 @@ def _get_supported_boards(
190190
f"Board returned type {err.returned_type!r}, "
191191
f"expected {err.expected_type!r}. Ignoring this device")
192192
continue
193-
boards[board._identity.asset_tag] = board # noqa: SLF001
193+
boards[board._identity.asset_tag] = board
194194
return MappingProxyType(boards)
195195

196196
@log_to_debug

sbot/historic/motor_board.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ def _get_simulator_boards(cls) -> MappingProxyType[str, MotorBoard]:
130130
f"Board returned type {err.returned_type!r}, "
131131
f"expected {err.expected_type!r}. Ignoring this device")
132132
continue
133-
boards[board._identity.asset_tag] = board # noqa: SLF001
133+
boards[board._identity.asset_tag] = board
134134
return MappingProxyType(boards)
135135

136136
@classmethod
@@ -170,7 +170,7 @@ def _get_supported_boards(
170170
f"Board returned type {err.returned_type!r}, "
171171
f"expected {err.expected_type!r}. Ignoring this device")
172172
continue
173-
boards[board._identity.asset_tag] = board # noqa: SLF001
173+
boards[board._identity.asset_tag] = board
174174

175175
# Add any manually specified boards
176176
if isinstance(manual_boards, list):
@@ -193,7 +193,7 @@ def _get_supported_boards(
193193
f"Board returned type {err.returned_type!r}, "
194194
f"expected {err.expected_type!r}. Ignoring this device")
195195
continue
196-
boards[board._identity.asset_tag] = board # noqa: SLF001
196+
boards[board._identity.asset_tag] = board
197197
return MappingProxyType(boards)
198198

199199
@property

sbot/historic/power_board.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ def _get_simulator_boards(cls) -> MappingProxyType[str, PowerBoard]:
148148
f"Board returned type {err.returned_type!r}, "
149149
f"expected {err.expected_type!r}. Ignoring this device")
150150
continue
151-
boards[board._identity.asset_tag] = board # noqa: SLF001
151+
boards[board._identity.asset_tag] = board
152152
return MappingProxyType(boards)
153153

154154
@classmethod
@@ -186,7 +186,7 @@ def _get_supported_boards(
186186
f"Board returned type {err.returned_type!r}, "
187187
f"expected {err.expected_type!r}. Ignoring this device")
188188
continue
189-
boards[board._identity.asset_tag] = board # noqa: SLF001
189+
boards[board._identity.asset_tag] = board
190190

191191
# Add any manually specified boards
192192
if isinstance(manual_boards, list):
@@ -209,7 +209,7 @@ def _get_supported_boards(
209209
f"Board returned type {err.returned_type!r}, "
210210
f"expected {err.expected_type!r}. Ignoring this device")
211211
continue
212-
boards[board._identity.asset_tag] = board # noqa: SLF001
212+
boards[board._identity.asset_tag] = board
213213
return MappingProxyType(boards)
214214

215215
@property

sbot/historic/servo_board.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ def _get_simulator_boards(cls) -> MappingProxyType[str, ServoBoard]:
126126
f"Board returned type {err.returned_type!r}, "
127127
f"expected {err.expected_type!r}. Ignoring this device")
128128
continue
129-
boards[board._identity.asset_tag] = board # noqa: SLF001
129+
boards[board._identity.asset_tag] = board
130130
return MappingProxyType(boards)
131131

132132
@classmethod
@@ -165,7 +165,7 @@ def _get_supported_boards(
165165
f"Board returned type {err.returned_type!r}, "
166166
f"expected {err.expected_type!r}. Ignoring this device")
167167
continue
168-
boards[board._identity.asset_tag] = board # noqa: SLF001
168+
boards[board._identity.asset_tag] = board
169169

170170
# Add any manually specified boards
171171
if isinstance(manual_boards, list):
@@ -188,7 +188,7 @@ def _get_supported_boards(
188188
f"Board returned type {err.returned_type!r}, "
189189
f"expected {err.expected_type!r}. Ignoring this device")
190190
continue
191-
boards[board._identity.asset_tag] = board # noqa: SLF001
191+
boards[board._identity.asset_tag] = board
192192
return MappingProxyType(boards)
193193

194194
@property

0 commit comments

Comments
 (0)