-
Notifications
You must be signed in to change notification settings - Fork 26
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
admin/adopy-mypy-type-checking #21
Conversation
Codecov Report
@@ Coverage Diff @@
## main #21 +/- ##
==========================================
+ Coverage 98.67% 98.68% +0.01%
==========================================
Files 17 17
Lines 454 458 +4
==========================================
+ Hits 448 452 +4
Misses 6 6
Continue to review full report at Codecov.
|
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.
🍹 The Update (preview) for stack CouncilDataProjectServiceAccount/cdp-infrastructure/cdp-example was successful.
Resource Changes
Name Type Operation
+ cdp-example-firestore-app gcp:appengine/application:Application create
+ matter_file-matter_ref_ASCENDING_name_ASCENDING gcp:firestore/index:Index create
+ matter_status-matter_ref_ASCENDING_update_datetime_ASCENDING gcp:firestore/index:Index create
+ cdp-example-firestore-service gcp:projects/service:Service create
+ cdp-example-compute-service gcp:projects/service:Service create
+ transcript-session_ref_ASCENDING_created_DESCENDING gcp:firestore/index:Index create
+ event-body_ref_ASCENDING_event_datetime_ASCENDING gcp:firestore/index:Index create
+ event-body_ref_ASCENDING_event_datetime_DESCENDING gcp:firestore/index:Index create
+ matter_status-matter_ref_ASCENDING_update_datetime_DESCENDING gcp:firestore/index:Index create
+ event_minutes_item-event_ref_ASCENDING_index_ASCENDING gcp:firestore/index:Index create
+ event_minutes_item_file-event_minutes_item_ref_ASCENDING_name_ASCENDING gcp:firestore/index:Index create
+ transcript-session_ref_ASCENDING_confidence_DESCENDING gcp:firestore/index:Index create
+ cdp-infrastructure-cdp-example pulumi:pulumi:Stack create
+ cdp-example CDPStack create
+ cdp-example-speech-service gcp:projects/service:Service create
+ event_minutes_item-event_ref_ASCENDING_index_DESCENDING gcp:firestore/index:Index create
Pull request recommendations:
Resolves #18
Adopts MyPy for type checking. While sometimes annoying, in the long run a good move to maintain the repo across multiple devs + PRs and such.
Note:
There are some changes in here that relate to mypy type checking, notably, the one that threw me off was mypy will try to use the same typing over the same variable at it's first initialization. Example:
mypy
will complain because I initializedsome_string
asList[str]
but then later used it as astr
. This should basically just teach me to use better naming conventions.Thanks for contributing!