Skip to content

fix(lint): resolve open CodeQL quality alerts - #314

Merged
saagpatel merged 2 commits into
mainfrom
codex/gra-codescan-nov04
Nov 4, 2026
Merged

saagpatel merged 2 commits into
mainfrom
codex/gra-codescan-nov04

Conversation

@saagpatel

Copy link
Copy Markdown
Owner

Resolves the 13 open CodeQL quality alerts without behavior changes.

  • py/empty-except (runner.py, routes.py, project_registry.py): each swallow is intentional (best-effort stdin close, optional display enrichment, optional source overrides), so each now says why.
  • py/unused-import (scorer.py): dropped the UNSCORED_DIMENSIONS / display_dimension re-exports; nothing in the repo imports them through scorer.
  • py/import-and-import-from (3 test files): one import style per module.
  • py/unreachable-statement + py/unused-local-variable (test_github_security_coverage.py): CodeQL misread the with pytest.raises block. It now uses the functional pytest.raises(...) form with the same assertions.
  • py/unused-global-variable and py/repeated-import (tests): removed.

Checked: ruff check, ruff format, make type-check (mypy), the portfolio truth-contract fixture check, and pytest (3742 passed; the optional semantic lane was deselected).

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-04T04:58:51.249915Z b08ac31 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@saagpatel
saagpatel merged commit 79bb279 into main Nov 4, 2026
8 checks passed
@saagpatel
saagpatel deleted the codex/gra-codescan-nov04 branch November 4, 2026 05:04
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.

1 participant