Open
Conversation
Clears ~15,000 flake8 warnings
Add E742 and E743 to ignore list - ambiguous variable names are OK in math-y code F841 — Unused variables (8) These are all tuple unpacking with _-prefixed names like _i_prev, _t_prev, _r_prev and except Exception as _:. The convention communicates intent. F401 — Unused imports (14) These are re-exports in __init__.py files, moviepy.editor import * for side effects, and json_utilities re-export. Standard pattern. E721 — Type comparison (15) Most are type(self) != type(other) in __eq__ methods or exact type dispatch where isinstance would have different semantics (matching subclasses)
|
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Run auto-formatting and suppress known flake8 warnings.
Linked issue(s)
Code quality fix - no related issue
Change type
Maintenance mode acknowledgement
What changed
ruff format_-prefixed names like_i_prev,_t_prev,_r_prevand except Exception as_:. The convention communicates intent.__init__.pyfiles,moviepy.editor import *for side effects, andjson_utilitiesre-export. Standardpattern.
type(self) != type(other)in__eq__methodsor exact type dispatch where
isinstancewould have different semantics (matchingsubclasses)
Validation
Ran all tests and notebooks locally.
Test evidence
Compatibility and risk
Checklist
masterbranchAdditional notes
Did not suppress many meaningful lint warnings in the code base, like F821, which will cause runtime errors if that code is ever run.