Skip to content

Fix CI test matrix failures caused by Ruff errors in app.py#52

Merged
quantumdynamics927-dotcom merged 4 commits intomainfrom
copilot/fix-ci-cd-pipeline-errors
Apr 5, 2026
Merged

Fix CI test matrix failures caused by Ruff errors in app.py#52
quantumdynamics927-dotcom merged 4 commits intomainfrom
copilot/fix-ci-cd-pipeline-errors

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 5, 2026

The Python 3.10–3.13 CI test jobs were all failing at the Ruff step before tests could run. The failure was isolated to app.py, where import hygiene and file formatting no longer matched the repository’s enforced lint rules.

  • CI failure source

    • Removed an unused numpy import from app.py
    • Kept the import block aligned with Ruff’s ordering rules
  • Formatting cleanup

    • Applied Ruff formatting to app.py so the file conforms to the repo’s enforced style checks
    • No functional behavior changes were introduced
import gradio as gr

from quantumpytho.engine import QuantumEngine
from quantumpytho.modules.bloch_ascii import one_qubit_from_angles
from quantumpytho.modules.circuit_explorer import bell_pair

Copilot AI and others added 4 commits April 5, 2026 02:01
Agent-Logs-Url: https://github.com/quantumdynamics927-dotcom/QPyth/sessions/a2644eb8-4165-44e2-9e67-0236df66b273

Co-authored-by: quantumdynamics927-dotcom <247722560+quantumdynamics927-dotcom@users.noreply.github.com>
Agent-Logs-Url: https://github.com/quantumdynamics927-dotcom/QPyth/sessions/a2644eb8-4165-44e2-9e67-0236df66b273

Co-authored-by: quantumdynamics927-dotcom <247722560+quantumdynamics927-dotcom@users.noreply.github.com>
Agent-Logs-Url: https://github.com/quantumdynamics927-dotcom/QPyth/sessions/a2644eb8-4165-44e2-9e67-0236df66b273

Co-authored-by: quantumdynamics927-dotcom <247722560+quantumdynamics927-dotcom@users.noreply.github.com>
Agent-Logs-Url: https://github.com/quantumdynamics927-dotcom/QPyth/sessions/a2644eb8-4165-44e2-9e67-0236df66b273

Co-authored-by: quantumdynamics927-dotcom <247722560+quantumdynamics927-dotcom@users.noreply.github.com>
@vercel
Copy link
Copy Markdown
Contributor

vercel bot commented Apr 5, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
q-pyth Ready Ready Preview, Comment Apr 5, 2026 2:24am

@quantumdynamics927-dotcom quantumdynamics927-dotcom marked this pull request as ready for review April 5, 2026 02:24
Copilot AI review requested due to automatic review settings April 5, 2026 02:24
@quantumdynamics927-dotcom quantumdynamics927-dotcom merged commit 217d47b into main Apr 5, 2026
11 checks passed
@quantumdynamics927-dotcom quantumdynamics927-dotcom deleted the copilot/fix-ci-cd-pipeline-errors branch April 5, 2026 02:25
Copy link
Copy Markdown

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 resolves CI failures in the Python 3.10–3.13 test matrix by bringing app.py back into compliance with the repository’s enforced Ruff linting/formatting rules (import hygiene + formatting), without changing runtime behavior.

Changes:

  • Removed an unused numpy import that was failing Ruff (F401).
  • Applied Ruff formatting updates (quote style, blank lines, call formatting) to match repo style checks.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@codecov-commenter
Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

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.

4 participants