Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ Documentation = "https://docs.sourcebots.co.uk"
[project.optional-dependencies]
dev = [
"poethepoet >=0.0.1,<1",
"ruff >=0.9,<1",
"ruff==0.9.8",
"mypy==1.10.0; python_version<'3.9'",
"mypy>=1.7,<2; python_version>='3.9'",
"build",
Expand Down
6 changes: 3 additions & 3 deletions sbot/historic/arduino.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def _get_simulator_boards(cls) -> MappingProxyType[str, Arduino]:
f"Board returned type {err.returned_type!r}, "
f"expected {err.expected_type!r}. Ignoring this device")
continue
boards[board._identity.asset_tag] = board # noqa: SLF001
boards[board._identity.asset_tag] = board
return MappingProxyType(boards)

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

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

@log_to_debug
Expand Down
6 changes: 3 additions & 3 deletions sbot/historic/motor_board.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def _get_simulator_boards(cls) -> MappingProxyType[str, MotorBoard]:
f"Board returned type {err.returned_type!r}, "
f"expected {err.expected_type!r}. Ignoring this device")
continue
boards[board._identity.asset_tag] = board # noqa: SLF001
boards[board._identity.asset_tag] = board
return MappingProxyType(boards)

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

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

@property
Expand Down
6 changes: 3 additions & 3 deletions sbot/historic/power_board.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def _get_simulator_boards(cls) -> MappingProxyType[str, PowerBoard]:
f"Board returned type {err.returned_type!r}, "
f"expected {err.expected_type!r}. Ignoring this device")
continue
boards[board._identity.asset_tag] = board # noqa: SLF001
boards[board._identity.asset_tag] = board
return MappingProxyType(boards)

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

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

@property
Expand Down
6 changes: 3 additions & 3 deletions sbot/historic/servo_board.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def _get_simulator_boards(cls) -> MappingProxyType[str, ServoBoard]:
f"Board returned type {err.returned_type!r}, "
f"expected {err.expected_type!r}. Ignoring this device")
continue
boards[board._identity.asset_tag] = board # noqa: SLF001
boards[board._identity.asset_tag] = board
return MappingProxyType(boards)

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

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

@property
Expand Down