Closed MichaelClifford closed 4 years ago
How do I fix the "pre-commit-check" test issues?
@MichaelClifford
you can run it locally and fix your commits. https://pre-commit.com/
$ pip install --user pre-commit
$ cd <REPO>
$ pre-commit install # adds a git commit hook to run precommit before it allows you to commit
$ pre-commit run # run manually on git staged changes
$ pre-commit run -a # run on all git tracked files
Some hooks will fix the violations themselves (like black
, trailing-whitespace
, end-of-file-fixer
), some just report the violation to you and leave it up to you to fix them. You just fix it, stage it into the commit, and run git commit
. This will execute the pre-commit
hook once again and if it passes, it allows you to create the commit (you force skip those checks by running git commit -n
instead).
Your particular pre-commit log reports violations from hooks that can modify files by themselves. For you no manual fixing should be required, just run pre-commit and it'll modify those files. You then just stage and commit them. :wink:
@tumido :smiley: Thanks for the help with "pre-commit". I was confused by the Shesheta output - files were modified by this hook
. Seemed like it fixed the issues automatically, but obviously not. :)
Anyways, used the tool locally, and it should pass now. :crossed_fingers:
Hi Michael,
It's working perfectly. This is great work. I spent an entire day finding out a solution on RHEL and end up being working on ubuntu VM. This doc is definitely useful.
Thanks!
This PR also addresses #11
@4n4nd I think I addressed all your suggestions. Take a look and let me know if not : )
[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: 4n4nd, tumido
The full list of commands accepted by this bot can be found here.
The pull request process is described here
Related Issues and Dependencies
This PR is related to #35 regarding adding additional documentation to help users build and test their images locally. …
This introduces a breaking change
This Pull Request implements
Updates the
Readme.md
and adds a supplementaldocs/RHEL8_docker_install.md
file to address some common issues users were running into.Description
This PR adds additional documentation to help users build and test their images locally. Specifically, it makes clear that the build and test process relies on s2i, docker and podam and provides links and additional instructions for installing these prerequisites. The additional documentation is a direct result of members of the AI CoE troubleshooting their own issues (specifically on RHEL8) and the information they would have found helpful.