Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix all flake8 issues #4535

Merged
merged 3 commits into from
Oct 4, 2021
Merged

Fix all flake8 issues #4535

merged 3 commits into from
Oct 4, 2021

Conversation

NicolasHug
Copy link
Member

This fixes all outstanding flake8 issues that popped up after #4384 (#4384 (comment))

Most of it is just removing unused imports. I stayed conservative (i.e. keep the import with a # noqa) when I wasn't sure.

It also ignores the line-too-long errors from flake8: those are taken care of by black now anyway, but there can be minor conflicts in the case e.g. of https://github.com/pytorch/vision/blob/main/torchvision/models/detection/ssdlite.py#L21:L21, so we just keep flake8 quite and trust black in those cases.

Copy link
Collaborator

@pmeier pmeier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some minor comments, otherwise LGTM!

test/common_utils.py Outdated Show resolved Hide resolved
setup.cfg Show resolved Hide resolved
test/test_datasets_video_utils_opt.py Show resolved Hide resolved
test/test_io_opt.py Outdated Show resolved Hide resolved
@NicolasHug
Copy link
Member Author

The test_frozenbatchnorm2d_eps errors are unrelated and are tracked in #4506

@NicolasHug NicolasHug merged commit b81d189 into pytorch:main Oct 4, 2021
facebook-github-bot pushed a commit that referenced this pull request Oct 7, 2021
Reviewed By: kazhang

Differential Revision: D31387948

fbshipit-source-id: a2fb59c15a79dcf32654826e3b620a5e93584447
mszhanyi pushed a commit to mszhanyi/vision that referenced this pull request Oct 19, 2021
cyyever pushed a commit to cyyever/vision that referenced this pull request Nov 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants