-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Format all python code with black and isort - take 2 #4427
Conversation
@jcwchen I created this pr to set up the config and CI for the formatters. Please let me know when the approved changes are merged and I can run the actual formatting process |
Signed-off-by: Justin Chu <[email protected]> update isort Signed-off-by: Justin Chu <[email protected]> update config Signed-off-by: Justin Chu <[email protected]>
Signed-off-by: Justin Chu <[email protected]> reset ci Signed-off-by: Justin Chu <[email protected]> fix linux ci Signed-off-by: Justin Chu <[email protected]>
Signed-off-by: Justin Chu <[email protected]>
cdab63a
to
9ce9cfe
Compare
Signed-off-by: Justin Chu <[email protected]>
bc1c304
to
d650a8d
Compare
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.
output_X.pb should not be updated, right? The are updated because different platforms might produce different result from NumPy. To keep this PR simple, I would suggest not updating them. Thanks!
Do we check for output_X.pb in the CI? I ran tools/update_doc.sh and got those. I will revert the changes |
Signed-off-by: Justin Chu <[email protected]>
d650a8d
to
d8d9145
Compare
Done |
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.
LGTM. Thanks for the quick PR: #4428. It indeed resolves a lot of unused variable warnings from onnx package.
@gramalingam ready for your approval |
* Add black and isort into requirement Signed-off-by: Justin Chu <[email protected]> update isort Signed-off-by: Justin Chu <[email protected]> update config Signed-off-by: Justin Chu <[email protected]> * Add ci Signed-off-by: Justin Chu <[email protected]> reset ci Signed-off-by: Justin Chu <[email protected]> fix linux ci Signed-off-by: Justin Chu <[email protected]> * Skip formatting the init file Signed-off-by: Justin Chu <[email protected]> * Black isort Signed-off-by: Justin Chu <[email protected]> * Gen docs Signed-off-by: Justin Chu <[email protected]> Signed-off-by: Justin Chu <[email protected]> Co-authored-by: Chun-Wei Chen <[email protected]> Co-authored-by: G. Ramalingam <[email protected]>
Description
Motivation and Context
Standardize formatting
Fixes #4278