Skip to content

test: resolve ruff lint findings in tests/ - #194

Merged
vsn411 merged 3 commits into
secfoo-com:mainfrom
RiccardoBifulco:fix/167-ruff-tests
Nov 25, 2026
Merged

vsn411 merged 3 commits into
secfoo-com:mainfrom
RiccardoBifulco:fix/167-ruff-tests

Conversation

@RiccardoBifulco

Copy link
Copy Markdown
Contributor

Fixes all ruff lint findings in tests/ (RUF012, F841, C408, SIM117, RUF059):

  • Annotates prompts as ClassVar[list[str]] in tests/test_memory.py
  • Removes unused calls in tests/test_runner.py and unused no_assessment_project binding in tests/test_storage/test_assessments.py
  • Replaces dict(...) calls with dict literals in tests/test_storage/test_structured_findings_storage.py
  • Merges nested with statements in tests/test_targets/test_github.py
  • Cleans up unused unpacked variables in tests/test_web/

Closes #167.

ruff check tests --exclude tests/fixtures --select RUF059,SIM117,F841,C408,RUF012 passes with 0 errors.

Copilot AI balanced review requested due to automatic review settings November 24, 2026 10:21

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

@vsn411
vsn411 merged commit ceb457c into secfoo-com:main Nov 25, 2026
9 checks passed
@github-actions

Copy link
Copy Markdown

Leaderboard update

RiccardoBifulco now has 18 points (rank #4). 7 more to reach Bronze.

Full leaderboard

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.

Lint: fix the 17 ruff errors in tests/ (unused variables, nested with, dict())

3 participants