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

Commit eee2b66

Browse files
Bump ruff from 0.0.286 to 0.0.290 (#16342)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Patrick Cloke <[email protected]>
1 parent 1f36041 commit eee2b66

File tree

4 files changed

+22
-33
lines changed

4 files changed

+22
-33
lines changed

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
@@ -320,7 +320,7 @@ all = [
320320
# This helps prevents merge conflicts when running a batch of dependabot updates.
321321
isort = ">=5.10.1"
322322
black = ">=22.7.0"
323-
ruff = "0.0.286"
323+
ruff = "0.0.290"
324324

325325
# Typechecking
326326
lxml-stubs = ">=0.4.0"

synapse/storage/databases/main/event_push_actions.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1599,10 +1599,7 @@ def _rotate_notifs_before_txn(
15991599
txn,
16001600
table="event_push_summary",
16011601
key_names=("user_id", "room_id", "thread_id"),
1602-
key_values=[
1603-
(user_id, room_id, thread_id)
1604-
for user_id, room_id, thread_id in summaries
1605-
],
1602+
key_values=list(summaries),
16061603
value_names=("notif_count", "unread_count", "stream_ordering"),
16071604
value_values=[
16081605
(

synapse/storage/databases/main/events.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -827,15 +827,7 @@ def _add_chain_cover_index(
827827
"target_chain_id",
828828
"target_sequence_number",
829829
),
830-
values=[
831-
(source_id, source_seq, target_id, target_seq)
832-
for (
833-
source_id,
834-
source_seq,
835-
target_id,
836-
target_seq,
837-
) in chain_links.get_additions()
838-
],
830+
values=list(chain_links.get_additions()),
839831
)
840832

841833
@staticmethod

0 commit comments

Comments
 (0)