-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Apply reorder-python-imports to all files #4235
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
Conversation
| """ | ||
| from __future__ import absolute_import, division, print_function | ||
| import sys | ||
| from __future__ import absolute_import |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@asottile can you change the tool so for future imports it does one line?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nope, not configurable intentionally
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@asottile not asking for a configuration there ^^
| rev: v1.3.2 | ||
| hooks: | ||
| - id: reorder-python-imports | ||
| args: ['--application-directories=.:src'] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I should probably also set --add-import 'from __future__ import absolute_import' and/or the others we want to enforce on all files
Codecov Report
@@ Coverage Diff @@
## master #4235 +/- ##
==========================================
+ Coverage 95.82% 95.87% +0.05%
==========================================
Files 109 109
Lines 24286 24590 +304
Branches 2392 2392
==========================================
+ Hits 23271 23575 +304
Misses 720 720
Partials 295 295
Continue to review full report at Codecov.
|
Add a changelog for #4235 [ci skip]
ah shoot, I should write a changelog entry -- maybe tomorrow
Resolves #4233