-
Notifications
You must be signed in to change notification settings - Fork 425
build(pre-commit): Add pre-commit to make pr
#368
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
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #368 +/- ##
========================================
Coverage 99.94% 99.94%
========================================
Files 96 96
Lines 3643 3643
Branches 175 175
========================================
Hits 3641 3641
Partials 2 2 Continue to review full report at Codecov.
|
make pr
Hey Michael, out of curiosity, did you run into those before?
That said, these are not run in CI and this is an improvement - is that what you intended? Thanks ;) |
@michaelbrewer yes I do run "make dev" and the pre-commit does run, but "make lint" does not include all of the same logic as "pre-commit". So what happens is:
|
@heitorlessa maybe there is an alternative solution with the same intent :) |
Gotcha, that's what I thought. Sadly there is no alternative, as the pre-commit project decided not to add them as it deems to be a non-safe operation. I was thinking on perhaps removing some of them, but there are higher priority tasks now. Merging this now ;) Thank you! |
* develop: fix(idempotent): Correctly raise IdempotencyKeyError (#378) feat(event-handler): Add AppSync handler decorator (#363) feat(parameter): add dynamodb_endpoint_url for local_testing (#376) fix(parser): S3Model support empty keys (#375) fix(data-classes): Add missing operationName (#373) fix: perf tests for Logger and fail str msgs feat(parser): Add S3 Object Lambda Event (#362) build(pre-commit): Add pre-commit to make pr (#368) fix(tracer): Correct type hint for MyPy (#365) fix(metrics): AttributeError raised by MediaManager and Typing and docs (#357) Signed-off-by: heitorlessa <lessa@amazon.co.uk>
Issue #, if available:
Description of changes:
pre-commit
runs additional checks thatmake pr
does not perform liketrailing-whitespace
Changes:
pre-commit
as a target in the MakefileChecklist
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.