-
Notifications
You must be signed in to change notification settings - Fork 732
Lint code style and remove PY2 compatibility #1386
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
424ef55 to
bbfb8ce
Compare
|
@mthrok review the updated PR and merge the fixes. |
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.
Hi @ankitdobhal
Thanks for the update.
Can you revert the changes in torchaudio/functional/functional.py?
Unlike the other changes, there is no issue in the code and it can impact the TorchScript IR (intermediate representation) when compiled.
3451b3e to
48f9c00
Compare
- Fixed implicit object inheritance - Use `max` built-in to get the maximum of two values - Remove unnecessary use of comprehension
|
Thanks! |
Thanks @mthrok . Activating analysis will help you to continuously analyze repo for code quality issues and fix commonly occurring issues using the auto-fix feature. I would like to share some steps to activate DeepSource : |
Thanks for the proposal but adding a new tool for our framework is not something torchaudio can decide on its own. The best way to make it adopted is to propose it in PyTorch repository https://github.com/pytorch/pytorch and get an approval, then we can discuss the adaptation steps. |
* Update spatial_transformer_tutorial.py * Update fgsm_tutorial.py * Update beginner_source/fgsm_tutorial.py Co-authored-by: Eli Uriegas <1700823+seemethere@users.noreply.github.com> Co-authored-by: Eli Uriegas <1700823+seemethere@users.noreply.github.com>
Description
Hi 👋 I ran the DeepSource static analyzer on the forked copy of this repo and found some interesting code quality issues. This PR fixes a few of them.
Summary of Fixes
Type of change
Checklist: