build(pre-commit): Add pre-commit to make pr#368
build(pre-commit): Add pre-commit to make pr#368heitorlessa merged 1 commit intoaws-powertools:developfrom
make pr#368Conversation
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.
|
|
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-commitruns additional checks thatmake prdoes not perform liketrailing-whitespaceChanges:
pre-commitas 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.