Skip to content

Conversation

@sileht
Copy link
Member

@sileht sileht commented Oct 17, 2025

This change uses the same rules we use in other projects.

Change-Id: I3fceec42477b484184ff76e3b323a2eb77b7303b
Copilot AI review requested due to automatic review settings October 17, 2025 13:30
@mergify mergify bot deployed to Mergify Merge Protections October 17, 2025 13:30 Active
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR updates the ruff linter configuration to align with the engine's settings and applies the corresponding code changes. The main focus is on enabling stricter type checking, modernizing Python syntax, and enforcing better code quality standards.

Key changes:

  • Updated ruff configuration to match engine settings, including Python 3.13 target, expanded rule sets, and new type-checking configurations
  • Added from __future__ import annotations to all Python files for PEP 563 postponed evaluation
  • Converted many imports to TYPE_CHECKING blocks to improve runtime performance
  • Updated function signatures to use keyword-only arguments for better API clarity
  • Removed unnecessary noqa comments that are now covered by the updated ignore list

Reviewed Changes

Copilot reviewed 34 out of 34 changed files in this pull request and generated no comments.

Show a summary per file
File Description
pyproject.toml Updated ruff configuration with expanded rule sets, new ignore patterns, and type-checking settings
test_binary_build.py Added future annotations import
mergify_cli/utils.py Updated function signatures with keyword-only arguments and removed noqa comments
mergify_cli/tests/*.py Added future annotations and TYPE_CHECKING blocks for imports
mergify_cli/stack/*.py Added future annotations, TYPE_CHECKING blocks, and keyword-only argument markers
mergify_cli/ci/**/*.py Added future annotations and moved imports to TYPE_CHECKING blocks

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@sileht sileht changed the title chore: enable same ruff as the engine chore: sync ruff rules Oct 17, 2025
@mergify
Copy link
Contributor

mergify bot commented Oct 17, 2025

Merge Protections

Your pull request matches the following merge protections and will not be merged until they are valid.

🟢 🤖 Continuous Integration

Wonderful, this rule succeeded.
  • all of:
    • check-success=test (macos-15)
    • check-success=test (ubuntu-24.04)
    • check-success=test (windows-2025)

🟢 👀 Review Requirements

Wonderful, this rule succeeded.
  • any of:
    • #approved-reviews-by>=2
    • author = dependabot[bot]
    • author = renovate[bot]

🟢 Enforce conventional commit

Wonderful, this rule succeeded.

Make sure that we follow https://www.conventionalcommits.org/en/v1.0.0/

  • title ~= ^(fix|feat|docs|style|refactor|perf|test|build|ci|chore|revert)(?:\(.+\))?:

🟢 🔎 Reviews

Wonderful, this rule succeeded.
  • #changes-requested-reviews-by = 0
  • #review-requested = 0
  • #review-threads-unresolved = 0

🟢 📕 PR description

Wonderful, this rule succeeded.
  • body ~= [a-zA-Z0-9 -_]{32,}

@mergify
Copy link
Contributor

mergify bot commented Oct 17, 2025

🧪 CI Insights

Here's what we observed from your CI run for c36c21b.

🟢 All jobs passed!

But CI Insights is watching 👀

@mergify mergify bot requested a review from a team October 17, 2025 13:33
@mergify mergify bot merged commit d2881d4 into main Oct 17, 2025
5 checks passed
@mergify mergify bot deleted the devs/sileht/fix-ruff/I3fceec42477b484184ff76e3b323a2eb77b7303b branch October 17, 2025 14:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants