Skip to content

chore: remove unused imports, variables, globals and f-prefixes from the package - #321

Merged
petercorke merged 2 commits into
mainfrom
chore/pyflakes-src
Nov 26, 2026
Merged

petercorke merged 2 commits into
mainfrom
chore/pyflakes-src

Conversation

@petercorke

Copy link
Copy Markdown
Owner

Clears the Codacy pyflakes findings in src/. It removes the dead, all-commented __main__ block in graphics.py. imtool.py gets real defaults for cs_image and colorspace, so its functions need no global statement to read them. The star imports in mvtbtool.py stay, because they build the shell's namespace. mypy is clean and 2414 tests pass.

An AI assistant (Claude Code) wrote this change.

🤖 Generated with Claude Code

…the package

Codacy pyflakes F401, F811, F841, F541, F999. The dead __main__ block in
graphics.py (all commented out) is removed. imtool.py gives cs_image and
colorspace real defaults so its functions need no global statement just to
read them. mypy and 2414 tests pass.

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

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 0 complexity · 0 duplication

Metric Results
Complexity 0
Duplication 0

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 abedaa9 into main Nov 26, 2026
33 of 34 checks passed
@petercorke
petercorke deleted the chore/pyflakes-src branch November 26, 2026 03:18
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