Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit 0a67743

Browse files
Bump ruff from 0.0.290 to 0.0.292 (#16449)
* Bump ruff from 0.0.290 to 0.0.292 Bumps [ruff](https://github.com/astral-sh/ruff) from 0.0.290 to 0.0.292. - [Release notes](https://github.com/astral-sh/ruff/releases) - [Changelog](https://github.com/astral-sh/ruff/blob/main/BREAKING_CHANGES.md) - [Commits](astral-sh/ruff@v0.0.290...v0.0.292) --- updated-dependencies: - dependency-name: ruff dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * Fix up lint --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Erik Johnston <erik@matrix.org>
1 parent 3727b84 commit 0a67743

7 files changed

Lines changed: 20 additions & 28 deletions

File tree

poetry.lock

Lines changed: 19 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ all = [
321321
# This helps prevents merge conflicts when running a batch of dependabot updates.
322322
isort = ">=5.10.1"
323323
black = ">=22.7.0"
324-
ruff = "0.0.290"
324+
ruff = "0.0.292"
325325
# Type checking only works with the pydantic.v1 compat module from pydantic v2
326326
pydantic = "^2"
327327

synapse/handlers/device.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -845,7 +845,6 @@ async def _handle_new_device_update_async(self) -> None:
845845
else:
846846
assert max_stream_id == stream_id
847847
# Avoid moving `room_id` backwards.
848-
pass
849848

850849
if self._handle_new_device_update_new_data:
851850
continue

synapse/handlers/federation.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1497,7 +1497,6 @@ async def exchange_third_party_invite(
14971497
# in the meantime and context needs to be recomputed, so let's do so.
14981498
if i == max_retries - 1:
14991499
raise e
1500-
pass
15011500
else:
15021501
destinations = {x.split(":", 1)[-1] for x in (sender_user_id, room_id)}
15031502

@@ -1573,7 +1572,6 @@ async def on_exchange_third_party_invite_request(
15731572
# in the meantime and context needs to be recomputed, so let's do so.
15741573
if i == max_retries - 1:
15751574
raise e
1576-
pass
15771575

15781576
async def add_display_name_to_third_party_invite(
15791577
self,

synapse/handlers/message.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1129,7 +1129,6 @@ async def _create_and_send_nonmember_event_locked(
11291129
# in the meantime and context needs to be recomputed, so let's do so.
11301130
if i == max_retries - 1:
11311131
raise e
1132-
pass
11331132

11341133
# we know it was persisted, so must have a stream ordering
11351134
assert ev.internal_metadata.stream_ordering
@@ -2034,7 +2033,6 @@ async def _send_dummy_event_for_room(self, room_id: str) -> bool:
20342033
# in the meantime and context needs to be recomputed, so let's do so.
20352034
if i == max_retries - 1:
20362035
raise e
2037-
pass
20382036
return True
20392037
except AuthError:
20402038
logger.info(

synapse/handlers/room.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,6 @@ async def upgrade_room(
261261
# in the meantime and context needs to be recomputed, so let's do so.
262262
if i == max_retries - 1:
263263
raise e
264-
pass
265264

266265
# This is to satisfy mypy and should never happen
267266
raise PartialStateConflictError()

synapse/handlers/room_member.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,6 @@ async def _local_membership_update(
500500
# in the meantime and context needs to be recomputed, so let's do so.
501501
if i == max_retries - 1:
502502
raise e
503-
pass
504503

505504
# we know it was persisted, so should have a stream ordering
506505
assert result_event.internal_metadata.stream_ordering
@@ -2005,7 +2004,6 @@ async def _generate_local_out_of_band_leave(
20052004
# in the meantime and context needs to be recomputed, so let's do so.
20062005
if i == max_retries - 1:
20072006
raise e
2008-
pass
20092007

20102008
# we know it was persisted, so must have a stream ordering
20112009
assert result_event.internal_metadata.stream_ordering

0 commit comments

Comments
 (0)