-
Notifications
You must be signed in to change notification settings - Fork 887
Make pre-commit usage clearer in error message #2241
Conversation
Ok something definitely broken in docker CI https://github.com/pytorch/serve/actions/runs/4739607940/jobs/8414589150?pr=2241 - I'm gonna ignore it to merge my other PRs |
Codecov Report
@@ Coverage Diff @@
## master #2241 +/- ##
==========================================
- Coverage 71.47% 71.35% -0.12%
==========================================
Files 73 73
Lines 3341 3341
Branches 57 57
==========================================
- Hits 2388 2384 -4
- Misses 950 954 +4
Partials 3 3 see 2 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
.github/workflows/lint.yml
Outdated
@@ -76,7 +76,7 @@ jobs: | |||
echo "pip install pre-commit" | |||
echo "cd serve/" | |||
echo "pre-commit install" | |||
echo "pre-commit will lint your code for you, so git add and commit those new changes and this check should become green" | |||
echo "git diff --name-only main | xargs pre-commit run --files" |
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.
I think it was still helpful to let the users know they need to install pre-commit then git add and commit
No description provided.