Fix F401 (unused imports) and remove from suppressions#144
Merged
kevinbackhouse merged 2 commits intomainfrom Jan 30, 2026
Merged
Fix F401 (unused imports) and remove from suppressions#144kevinbackhouse merged 2 commits intomainfrom
kevinbackhouse merged 2 commits intomainfrom
Conversation
Co-authored-by: kevinbackhouse <4358136+kevinbackhouse@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix all linter errors in the code
Fix F401 (unused imports) and remove from suppressions
Jan 29, 2026
kevinbackhouse
approved these changes
Jan 29, 2026
Contributor
There was a problem hiding this comment.
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) fromjsonrpyc/__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.
p-
approved these changes
Jan 29, 2026
kevinbackhouse
approved these changes
Jan 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
jsonrpyc/__init__.py:io,Optional,Typepyproject.tomlignore listAll other imports in the file remain (
json,os,re,sys,threading,time,Callable,Any,Protocol,TypeAlias).Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.