Implement pre-commit hooks
What this PR does / why we need it: This PR implements pre-commit hooks and ensures that they're executed, as validating admission control, in CI. Once this is merged, I plan to submit follow up PRs that progressively implement additional hooks.
Which issue(s) this PR fixes Fixes # https://github.com/kubeflow/training-operator/issues/2178
Checklist:
- [x] Docs included if any changes are user facing
Check out this pull request on ![]()
See visual diffs & provide feedback on Jupyter Notebooks.
Powered by ReviewNB
@andreyvelich 🎉
Pull Request Test Coverage Report for Build 10182830151
Details
- 0 of 0 changed or added relevant lines in 0 files are covered.
- No unchanged relevant lines lost coverage.
- Overall coverage increased (+0.1%) to 34.944%
| Totals | |
|---|---|
| Change from base Build 10131041132: | 0.1% |
| Covered Lines: | 3949 |
| Relevant Lines: | 11301 |
💛 - Coveralls
A few autogenerated files slipped through the cracks. Addressing now. Also going to move the black execution to the pre-commit hooks.
Fixed. All checks passing.
The integration test failures are unrelated to this PR afaict. They both stop logging after Collecting urllib3>=1.15.1 (from kubeflow-training==1.8.0).
@andreyvelich any chance we could expedite this? The changes are all superficial but the surface area is large so it's going to require constant rebasing.
/rerun-all
[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: andreyvelich
The full list of commands accepted by this bot can be found here.
The pull request process is described here
- ~~OWNERS~~ [andreyvelich]
Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment
Thanks for the merge, @andreyvelich! Happy to add more hooks and also bring the katib hooks into alignment.