-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Fix pre-commit isort hook failure for benchmarks subdir. #5400
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 pre-commit isort hook failure for benchmarks subdir. #5400
Conversation
| import torch | ||
| from tqdm import tqdm | ||
|
|
||
| import torch |
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.
is this correct as torch is external lib?
Codecov Report
@@ Coverage Diff @@
## release/1.2-dev #5400 +/- ##
===============================================
Coverage 93% 93%
===============================================
Files 146 146
Lines 10361 10361
===============================================
Hits 9597 9597
Misses 764 764 |
akihironitta
left a comment
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.
@arnaudgelas It seems that all the changes in this PR don't comply with our current isort config. You might be accidentally using a different config...?
|
@akihironitta I don't know why, but on my machine isort considers +known_third_party = [
Should I proceed? |
|
@arnaudgelas That's strange... Which version of |
|
@akihironitta Thanks! You gave me an excellent pointer to fix it. The main problem is pre-commit was relying on see #5408 Note that once the mentioned PR gets merged, I will have to close this one since there won't be anymore error in benchmark folder. |
|
@arnaudgelas You're welcome! |
Rework #5398