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

Commit

Permalink
Bump ruff from 0.0.290 to 0.0.292 (#16449)
Browse files Browse the repository at this point in the history
* 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] <[email protected]>

* Fix up lint

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Erik Johnston <[email protected]>
  • Loading branch information
dependabot[bot] and erikjohnston authored Oct 9, 2023
1 parent 3727b84 commit 0a67743
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 28 deletions.
38 changes: 19 additions & 19 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ all = [
# This helps prevents merge conflicts when running a batch of dependabot updates.
isort = ">=5.10.1"
black = ">=22.7.0"
ruff = "0.0.290"
ruff = "0.0.292"
# Type checking only works with the pydantic.v1 compat module from pydantic v2
pydantic = "^2"

Expand Down
1 change: 0 additions & 1 deletion synapse/handlers/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -845,7 +845,6 @@ async def _handle_new_device_update_async(self) -> None:
else:
assert max_stream_id == stream_id
# Avoid moving `room_id` backwards.
pass

if self._handle_new_device_update_new_data:
continue
Expand Down
2 changes: 0 additions & 2 deletions synapse/handlers/federation.py
Original file line number Diff line number Diff line change
Expand Up @@ -1497,7 +1497,6 @@ async def exchange_third_party_invite(
# in the meantime and context needs to be recomputed, so let's do so.
if i == max_retries - 1:
raise e
pass
else:
destinations = {x.split(":", 1)[-1] for x in (sender_user_id, room_id)}

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

async def add_display_name_to_third_party_invite(
self,
Expand Down
2 changes: 0 additions & 2 deletions synapse/handlers/message.py
Original file line number Diff line number Diff line change
Expand Up @@ -1129,7 +1129,6 @@ async def _create_and_send_nonmember_event_locked(
# in the meantime and context needs to be recomputed, so let's do so.
if i == max_retries - 1:
raise e
pass

# we know it was persisted, so must have a stream ordering
assert ev.internal_metadata.stream_ordering
Expand Down Expand Up @@ -2034,7 +2033,6 @@ async def _send_dummy_event_for_room(self, room_id: str) -> bool:
# in the meantime and context needs to be recomputed, so let's do so.
if i == max_retries - 1:
raise e
pass
return True
except AuthError:
logger.info(
Expand Down
1 change: 0 additions & 1 deletion synapse/handlers/room.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,6 @@ async def upgrade_room(
# in the meantime and context needs to be recomputed, so let's do so.
if i == max_retries - 1:
raise e
pass

# This is to satisfy mypy and should never happen
raise PartialStateConflictError()
Expand Down
2 changes: 0 additions & 2 deletions synapse/handlers/room_member.py
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,6 @@ async def _local_membership_update(
# in the meantime and context needs to be recomputed, so let's do so.
if i == max_retries - 1:
raise e
pass

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

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

0 comments on commit 0a67743

Please sign in to comment.