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
Un-ignore F403 in .flake8 #55838
Un-ignore F403 in .flake8 #55838
Conversation
|
@samestep has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
Would the ones where you added # noqa: F403 still block the isort change?
@janeyx99 I don't believe so, but I could open a draft PR based on top of this one and use that to check |
Yea feel free to do so in a separate PR |
Summary: Generally wildcard imports are bad for the reasons described here: https://www.flake8rules.com/rules/F403.html This PR replaces wildcard imports with an explicit list of imported items where possible, and adds a `# noqa: F403` comment in the other cases (mostly re-exports in `__init__.py` files). This is a prerequisite for pytorch#55816, because currently [`tools/codegen/dest/register_dispatch_key.py` simply fails if you sort its imports](https://github.com/pytorch/pytorch/actions/runs/742505908). Pull Request resolved: pytorch#55838 Test Plan: CI. You can also run `flake8` locally. Reviewed By: jbschlosser Differential Revision: D27724232 Pulled By: samestep fbshipit-source-id: 269fb09cb4168f8a51fd65bfaacc6cda7fb87c34
Generally wildcard imports are bad for the reasons described here: https://www.flake8rules.com/rules/F403.html
This PR replaces wildcard imports with an explicit list of imported items where possible, and adds a
# noqa: F403
comment in the other cases (mostly re-exports in__init__.py
files).This is a prerequisite for #55816, because currently
tools/codegen/dest/register_dispatch_key.py
simply fails if you sort its imports.Test plan:
CI. You can also run
flake8
locally.The text was updated successfully, but these errors were encountered: