-
Notifications
You must be signed in to change notification settings - Fork 634
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
Lint with Black on GitHub Actions and format with Black #136
Conversation
@hugovk thanks a lot for the PRs and really appreciate your contribution! To make the PRs meaningful under #Hacktoberfest guidelines, would be great if you could combine #134, #135, #137 into single one. I would be happy to run a circleci test and merge it. On another note, if you are interested and would like to contribute further I can create a separate issue to automate package building on github and we can count that as a separate PR. |
Sure, sounds good to both suggestions! |
And fix a typo
Locust summaryGit referencesInitial: 7a400c3Terminal: 501a927 hub/collections/dataset/core.pyChanges:
hub/client/auth.pyChanges:
hub/client/hub_control.pyChanges:
hub/client/token_manager.pyChanges:
hub/collections/tensor/core.pyChanges:
test/benchmark/old/imagenet_train.pyChanges:
test/benchmark/old/multiprocess_benchmark.pyChanges:
hub/client/base.pyChanges:
test/benchmark/old/baseline.pyChanges:
examples/fashion-mnist/train_pytorch.pyChanges:
hub/exceptions.pyChanges:
examples/coco/upload_coco2017.pyChanges:
examples/fashion-mnist/train_tf_fit.pyChanges:
examples/fashion-mnist/train_tf_gradient_tape.pyChanges:
examples/fashion-mnist/upload.pyChanges:
examples/mnist/upload.pyChanges:
hub/cli/auth.pyChanges:
hub/cli/utils.pyChanges:
hub/collections/client_manager.pyChanges:
hub/collections/dataset/__init__.pyChanges:
hub/collections/tensor/__init__.pyChanges:
hub/log.pyChanges:
hub/utils.pyChanges:
test/benchmark/basic_train.pyChanges:
|
Codecov Report
@@ Coverage Diff @@
## master #136 +/- ##
=======================================
Coverage 64.30% 64.30%
=======================================
Files 39 39
Lines 1496 1496
=======================================
Hits 962 962
Misses 534 534
Continue to review full report at Codecov.
|
https://github.com/activeloopai/Hub/blob/master/CONTRIBUTING.md says:
However, the code is not Black formatted.
Let's format it!
And let's go a step further, and add linting on CI using GitHub Actions to make sure the code remains formatted.
It does it using pre-commit, so if people like, they can use
pip install pre-commit && pre-commit install
to have it automatically run Black during commit. This is optional though.