Skip to content

test: remove unused imports and variables flagged by ruff - #190

Merged
beaufour merged 1 commit into
masterfrom
wt-lint-cleanup
Oct 28, 2026
Merged

beaufour merged 1 commit into
masterfrom
wt-lint-cleanup

Conversation

@beaufour

Copy link
Copy Markdown
Collaborator

Cleans up 8 pre-existing ruff findings in test/ that CI lint does not gate (the CI lint job only checks flickr_api/):

  • 6x F401 (unused imports): removed unused import flickr_api as f in test_activity.py, test_bytes_response.py, test_commons.py, test_urls.py, test_walker.py, and unused MagicMock in test_rate_limit.py / test_walker.py.
  • 2x F841 (unused local): removed unused args = dict(...) assignments in test_500_handler.py and test_bytes_response.py — the request is made via keyword arguments, so the dict was dead code.

No behavior change. Full suite passes locally (324 passed, 2 skipped); ruff check test/ is now clean.

Fixes 8 pre-existing ruff findings in test/ that CI lint does not
cover (it only checks flickr_api/): 6x F401 (unused flickr_api /
MagicMock imports) and 2x F841 (unused args dict in request tests,
where the dict is passed as a keyword argument instead).

No behavior change; full suite passes (324 passed, 2 skipped).
@beaufour
beaufour merged commit 612a219 into master Oct 28, 2026
7 checks passed
@beaufour
beaufour deleted the wt-lint-cleanup branch October 28, 2026 09:57
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