Skip to content

fix: mvtbtool --backend sets the Matplotlib backend instead of stopping with NameError - #324

Open
petercorke wants to merge 1 commit into
mainfrom
bug/mvtbtool-backend-plt
Open

petercorke wants to merge 1 commit into
mainfrom
bug/mvtbtool-backend-plt

Conversation

@petercorke

Copy link
Copy Markdown
Owner

mvtbtool --backend called plt.use(), but plt was never imported, so the option always stopped with NameError: name 'plt' is not defined. It now calls matplotlib.use(), as imtool does. The new test in tests/test_bin.py fails without the fix and passes with it.

An AI assistant (Claude Code) wrote this change.

🤖 Generated with Claude Code

…ng with NameError

The code called plt.use(), but plt was never imported in mvtbtool. It now
calls matplotlib.use(), as imtool does. The new test fails without the fix.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@codacy-production

Copy link
Copy Markdown

Not up to standards ⛔

🔴 Issues 1 critical

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

Results:
1 new issue

Category Results
Security 1 critical

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.

This branch has not been deployed

No deployments
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