Skip to content

Enable Ruff - #84

Merged
j0sh merged 1 commit into
mainfrom
ja/ruff
Oct 23, 2026
Merged

j0sh merged 1 commit into
mainfrom
ja/ruff

Conversation

@j0sh

@j0sh j0sh commented Oct 23, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI balanced review requested due to automatic review settings October 23, 2026 22:03

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

Static review identified no blocking issues, and the syntax modernization preserves behavior on the supported Python versions.

No open issues 🎉

What changed in this PR

Enables Ruff in CI and modernizes Python syntax across the gateway package to support repository-wide lint enforcement.

Changes:

  • Activates the existing Ruff CI job.
  • Modernizes type annotations and collection imports.
  • Replaces asyncio.TimeoutError with built-in TimeoutError, compatible with the supported Python versions.
File Description
src/​livepeer_gateway/​trickle_subscriber.py Modernizes optional and forward-reference annotations.
src/​livepeer_gateway/​trickle_publisher.py Updates annotations, collection imports, and timeout handling syntax.
src/​livepeer_gateway/​token.py Modernizes an optional annotation.
src/​livepeer_gateway/​segment_reader.py Modernizes optional and header annotations.
src/​livepeer_gateway/​remote_signer.py Modernizes optional annotations.
src/​livepeer_gateway/​media_publish.py Updates annotations, collection imports, and timeout handling syntax.
src/​livepeer_gateway/​media_output.py Modernizes optional and forward-reference annotations.
src/​livepeer_gateway/​media_decode.py Modernizes union, optional, and queue annotations.
src/​livepeer_gateway/​control.py Modernizes optional task annotations.
src/​livepeer_gateway/​channel_writer.py Modernizes optional writer and task annotations.
src/​livepeer_gateway/​channel_reader.py Removes quotes from a segment reader annotation.
pyproject.toml Updates a comment to describe repository-wide lint enforcement.
.github/​workflows/​tests.yml Removes the condition disabling Ruff.

Review effort: Balanced

@j0sh
j0sh merged commit 35fc426 into main Oct 23, 2026
6 checks passed
@j0sh
j0sh deleted the ja/ruff branch October 23, 2026 23:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants