Skip to content

fix(integrations): remove duplicate Forge dispatch override - #4714

Merged
mnriem merged 1 commit into
github:mainfrom
mnriem:mnriem-fix-forge-ruff
Sep 23, 2026
Merged

mnriem merged 1 commit into
github:mainfrom
mnriem:mnriem-fix-forge-ruff

Conversation

@mnriem

@mnriem mnriem commented Sep 23, 2026

Copy link
Copy Markdown
Collaborator

Description

Remove the second ForgeIntegration.build_exec_args definition introduced when overlapping Forge dispatch fixes were merged. Both implementations produce the same CLI arguments, so keeping the documented first definition resolves Ruff F811 without changing behavior.

Testing

  • Tested locally with uv run specify --help
  • Ran existing tests with uv sync --extra test && .venv/bin/python -m pytest (8,520 passed, 17 skipped)
  • Tested with a sample project (not applicable; dispatch behavior is unchanged)
  • uvx ruff@0.15.0 check src tests (passed)

AI Disclosure

  • I did not use AI assistance for this contribution
  • I did use AI assistance (fill in the disclosure below)

AI disclosure: GitHub Copilot (model: GPT-6 Sol; session-default reasoning effort, not explicitly set; autonomous) authored the code cleanup, ran Ruff and the full test suite, and drafted this PR on behalf of @mnriem. The change has not been line-by-line human-reviewed.

Keep the equivalent, documented Forge override and remove the shadowing definition introduced by overlapping fixes. Ruff F811 then passes without changing dispatch behavior.

Assisted-by: GitHub Copilot (model: GPT-6 Sol, autonomous)

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings September 23, 2026 18:43

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.

Copilot review overview

馃煝 Approval recommended

The focused cleanup preserves tested Forge dispatch behavior and resolves the duplicate-definition lint error.

Review effort: Balanced
Findings: None

What changed in this PR

Removes the duplicate Forge execution-argument method, resolving Ruff F811 without changing dispatch behavior.

Changes:

  • Retains the documented build_exec_args implementation.
  • Removes the behaviorally identical duplicate definition.
File Description
src/鈥媠pecify_cli/鈥媔ntegrations/鈥媐orge/鈥媉_init__.py Removes the duplicate method implementation.

馃挕 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@mnriem
mnriem merged commit 583b1a5 into github:main Sep 23, 2026
15 checks passed
@mnriem
mnriem deleted the mnriem-fix-forge-ruff branch September 23, 2026 18:58
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