Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 29, 2026

Part of removing all ruff suppressions from pyproject.toml. This PR addresses F401 (unused imports) - one of 55 suppressed warning types, each being fixed in separate PRs.

Changes

  • Removed unused imports from jsonrpyc/__init__.py: io, Optional, Type
  • Removed F401 from pyproject.toml ignore list

All other imports in the file remain (json, os, re, sys, threading, time, Callable, Any, Protocol, TypeAlias).

Original prompt

This section details on the original issue you should resolve

<issue_title>fix all linter errors</issue_title>
<issue_description>Remove all of the ruff suppressions currently listed in pyproject.toml and fix the errors in the code.</issue_description>

<agent_instructions>Create a separate sub-issue for each linter warning that has been suppressed and a separate pull request for each of those sub-issues.</agent_instructions>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: kevinbackhouse <4358136+kevinbackhouse@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix all linter errors in the code Jan 29, 2026
Copilot AI requested a review from kevinbackhouse January 29, 2026 14:33
@kevinbackhouse kevinbackhouse marked this pull request as ready for review January 29, 2026 14:45
Copilot AI review requested due to automatic review settings January 29, 2026 14:45
Copy link
Contributor

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 removes unused imports and eliminates the F401 (unused imports) suppression from the project's linting configuration as part of a broader effort to address all suppressed linter warnings.

Changes:

  • Removed three unused imports (io, Optional, Type) from jsonrpyc/__init__.py
  • Removed F401 from the ruff linter ignore list in pyproject.toml

Reviewed changes

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

File Description
src/seclab_taskflow_agent/mcp_servers/codeql/jsonrpyc/init.py Removed unused imports: io, Optional (replaced by PEP 604 union syntax), and Type (not used anywhere)
pyproject.toml Removed F401 (unused import) from the ruff linter suppression list

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

@kevinbackhouse kevinbackhouse merged commit 872c41c into main Jan 30, 2026
15 checks passed
@kevinbackhouse kevinbackhouse deleted the copilot/fix-linter-errors-yet-again branch January 30, 2026 13:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants