Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump ruff from 0.1.14 to 0.3.2 #16994

Merged
merged 3 commits into from Mar 13, 2024
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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
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.1.14"
ruff = "0.3.2"
# Type checking only works with the pydantic.v1 compat module from pydantic v2
pydantic = "^2"

Expand Down
7 changes: 0 additions & 7 deletions synapse/synapse_rust/events.pyi
Expand Up @@ -56,7 +56,6 @@ class EventInternalMetadata:

(Added in synapse 0.99.0, so may be unreliable for events received before that)
"""
...

def get_send_on_behalf_of(self) -> Optional[str]:
"""Whether this server should send the event on behalf of another server.
Expand All @@ -65,7 +64,6 @@ class EventInternalMetadata:

returns a str with the name of the server this event is sent on behalf of.
"""
...

def need_to_check_redaction(self) -> bool:
"""Whether the redaction event needs to be rechecked when fetching
Expand All @@ -77,7 +75,6 @@ class EventInternalMetadata:
If the sender of the redaction event is allowed to redact any event
due to auth rules, then this will always return false.
"""
...

def is_soft_failed(self) -> bool:
"""Whether the event has been soft failed.
Expand All @@ -88,7 +85,6 @@ class EventInternalMetadata:
2. They should not be added to the forward extremities (and
therefore not to current state).
"""
...

def should_proactively_send(self) -> bool:
"""Whether the event, if ours, should be sent to other clients and
Expand All @@ -97,16 +93,13 @@ class EventInternalMetadata:
This is used for sending dummy events internally. Servers and clients
can still explicitly fetch the event.
"""
...

def is_redacted(self) -> bool:
"""Whether the event has been redacted.

This is used for efficiently checking whether an event has been
marked as redacted without needing to make another database call.
"""
...

def is_notifiable(self) -> bool:
"""Whether this event can trigger a push notification"""
...