Skip to content

style(ruff): enable RET504 check and remove unnecessary assignment - #241

Merged
schwehr merged 1 commit into
mainfrom
ruff-ret504
Sep 23, 2026
Merged

schwehr merged 1 commit into
mainfrom
ruff-ret504

Conversation

@schwehr

@schwehr schwehr commented Sep 23, 2026

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI lite review requested due to automatic review settings September 23, 2026 19:59

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.

Copilot review overview

🟢 Approval recommended

No unresolved issues were identified.

Review effort: Lite
Findings: None

What changed in this PR

This pull request enables Ruff’s RET504 check and simplifies the primality-test return expression.

Changes:

  • Removes RET504 from Ruff’s ignore list.
  • Removes the unnecessary intermediate assignment.
File Description
pyproject.toml Enables Ruff’s RET504 check.
BitVector/​BitVector.py Returns the primality probability expression directly.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@schwehr
schwehr merged commit 0e718b7 into main Sep 23, 2026
9 checks passed
@schwehr
schwehr deleted the ruff-ret504 branch September 23, 2026 20:06
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