Skip to content

chore(python): enforce clean Ruff rules - #19114

Merged
Tobias Brick (tobiasb-ms) merged 1 commit into
microsoft:4.0from
tobiasb-ms:tobiasb-ms/ruff-zero-debt-rules
Oct 8, 2026
Merged

Tobias Brick (tobiasb-ms) merged 1 commit into
microsoft:4.0from
tobiasb-ms:tobiasb-ms/ruff-zero-debt-rules

Conversation

@tobiasb-ms

Copy link
Copy Markdown
Contributor

Summary

Remove the redundant D401 and PERF102 entries from Ruff's global debt
suppression list. The repository already passes both checks, so this tightens
enforcement without changing source code.

This continues the focused Ruff rollout following #19113.

Validation

  • pre-commit run --all-files

Remove the redundant D401 and PERF102 debt suppressions now that the repository passes both checks.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings October 8, 2026 20:05

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

The focused configuration change correctly enables two already-clean Ruff rules.

0 open findings

What changed in this PR

Tightens Python linting by enabling Ruff’s D401 and PERF102 rules globally.

Changes:

  • Removes two obsolete global suppressions without changing source code.
File Description
ruff.toml Removes D401 and PERF102 from Ruff’s ignore list.

🧠 Review effort: Balanced


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

@tobiasb-ms

Copy link
Copy Markdown
Contributor Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
2 pipeline(s) were filtered out due to trigger conditions.

@tobiasb-ms
Tobias Brick (tobiasb-ms) marked this pull request as ready for review October 8, 2026 20:08
@tobiasb-ms
Tobias Brick (tobiasb-ms) requested a review from a team as a code owner October 8, 2026 20:08
@tobiasb-ms
Tobias Brick (tobiasb-ms) merged commit 855229e into microsoft:4.0 Oct 8, 2026
10 checks passed
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.

3 participants