Skip to content

chore: tests have explicit imports, no unused imports or variables - #320

Merged
petercorke merged 3 commits into
mainfrom
chore/pyflakes-tests
Nov 26, 2026
Merged

petercorke merged 3 commits into
mainfrom
chore/pyflakes-tests

Conversation

@petercorke

Copy link
Copy Markdown
Owner

Clears the Codacy pyflakes findings in tests/. The second TestGridify class was hiding the first, so its test never ran. It is renamed TestGridifyPerCell, and it passes. test_graphics.py and test_image_color.py import the names they use. Imports that only probe for an optional package use __import__. 2416 tests pass.

An AI assistant (Claude Code) wrote this change.

🤖 Generated with Claude Code

petercorke and others added 2 commits November 26, 2026 12:04
…s drops a repeated import

Two classes named TestGridify in one file meant the first one never ran. It is
renamed TestGridifyPerCell; it passes. Codacy pyflakes F811.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Codacy pyflakes F401, F405, F841. The star imports in test_graphics.py and
test_image_color.py name what they use. Imports that only probe for an
optional package use __import__, which pyflakes accepts. 2416 tests pass.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@codacy-production

Copy link
Copy Markdown

Not up to standards ⛔

🔴 Issues 1 high

Alerts:
⚠ 1 issue (≤ 0 issues of at least minor severity)

Results:
1 new issue

Category Results
ErrorProne 1 high

View in Codacy

🟢 Metrics 0 complexity · -8 duplication

Metric Results
Complexity 0
Duplication -8

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@petercorke
petercorke merged commit 8ddb283 into main Nov 26, 2026
31 of 32 checks passed
@petercorke
petercorke deleted the chore/pyflakes-tests branch November 26, 2026 03:32
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