Skip to content

fix: move pylint disable comments to correct lines in test files - #113

Merged
willtheorangeguy merged 1 commit into
masterfrom
claude/fix-pylint-errors-tests-cj8162
Aug 16, 2026
Merged

fix: move pylint disable comments to correct lines in test files#113
willtheorangeguy merged 1 commit into
masterfrom
claude/fix-pylint-errors-tests-cj8162

Conversation

@willtheorangeguy

Copy link
Copy Markdown
Owner

Summary

  • The # pylint: disable=import-outside-toplevel comments in tests/test_compat.py and tests/test_widgets.py were placed on the closing ) line of multi-line imports.
  • Pylint matches inline disable comments to the line where the warning is triggered — the from line — so the comments were silently ignored and C0415 kept firing.
  • Moved all eight disable comments to the opening from ... ( line so pylint actually suppresses them.

Both test files now score 10.00/10 (up from 7.98/10).


Generated by Claude Code

The `# pylint: disable=import-outside-toplevel` comments were placed on
the closing `)` line of multi-line imports, but pylint matches inline
disables to the line where the warning is triggered (the `from` line).
Moving the comment to the opening `from (` line silences C0415 correctly.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VjiDW5hoDgJ6GYZ7tUozim
@willtheorangeguy
willtheorangeguy merged commit 042ce4c into master Aug 16, 2026
11 checks passed
@willtheorangeguy
willtheorangeguy deleted the claude/fix-pylint-errors-tests-cj8162 branch August 16, 2026 03:34
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.

2 participants