-
Notifications
You must be signed in to change notification settings - Fork 209
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
chore: Convert typings to mypy #311
Commits on Aug 18, 2020
-
This version is a few ahead of the other amundsen services, but includes better defaults. Signed-off-by: Dorian Johnson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for f72506a - Browse repository at this point
Copy the full SHA f72506aView commit details -
setup.cfg: update mypy config for python3
warn_no_return and strict_optional are now default-on Also try disabling ignore_missing_imports Signed-off-by: Dorian Johnson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 784d2a5 - Browse repository at this point
Copy the full SHA 784d2a5View commit details -
setup.cfg: ignore ignore_missing_imports for now
Signed-off-by: Dorian Johnson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 20bc26f - Browse repository at this point
Copy the full SHA 20bc26fView commit details -
makefile: add mypy task, include in test
Signed-off-by: Dorian Johnson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for da39c23 - Browse repository at this point
Copy the full SHA da39c23View commit details -
README: type comment -> annotation
Signed-off-by: Dorian Johnson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 3687fa4 - Browse repository at this point
Copy the full SHA 3687fa4View commit details -
chore: move most type comments to annotations (automated via com2ann)
Signed-off-by: Dorian Johnson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 35f3c73 - Browse repository at this point
Copy the full SHA 35f3c73View commit details -
typings: start fixing comments left by com2ann
Signed-off-by: Dorian Johnson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for b582ea5 - Browse repository at this point
Copy the full SHA b582ea5View commit details -
typings: add missing type imports
Signed-off-by: Dorian Johnson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for afa1b16 - Browse repository at this point
Copy the full SHA afa1b16View commit details -
typings: fix syntax errors caused by com2ann
Signed-off-by: Dorian Johnson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 197fb11 - Browse repository at this point
Copy the full SHA 197fb11View commit details -
typings: fix typo'd Iterator pattern
This was either messed up by com2ann, or was incorrect before. Signed-off-by: Dorian Johnson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 8fd7550 - Browse repository at this point
Copy the full SHA 8fd7550View commit details -
typings: fix some parse ordering issues with type annotations
Signed-off-by: Dorian Johnson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for adfb73f - Browse repository at this point
Copy the full SHA adfb73fView commit details -
typing: fix other compile errors left by com2ann
Signed-off-by: Dorian Johnson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 875907c - Browse repository at this point
Copy the full SHA 875907cView commit details -
typing: fix some leftover broken annotations
Signed-off-by: Dorian Johnson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for d6c1e9f - Browse repository at this point
Copy the full SHA d6c1e9fView commit details -
typings: add missing typings checkpoint (197 errors remain)
Signed-off-by: Dorian Johnson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 043ef47 - Browse repository at this point
Copy the full SHA 043ef47View commit details -
tests: HACK to preserve trailing whitespace in query test
I edit with trim_trailing_white_space_on_save enabled in Sublime, editing anything else in this file will cause this sensitive test to break. This isn't the prettiest way to fix this, but I think this is enough of a gotcha that the previous status quo is not acceptable. Very open to feedback if there's a better way or established pattern to fix this footgun. Signed-off-by: Dorian Johnson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 3802832 - Browse repository at this point
Copy the full SHA 3802832View commit details -
typing: checkpoint mypy fixes (124 errors remain)
Signed-off-by: Dorian Johnson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 8d425b9 - Browse repository at this point
Copy the full SHA 8d425b9View commit details -
typings: checkpoint for fixed mypy errors (84 remain)
Signed-off-by: Dorian Johnson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 5112f6f - Browse repository at this point
Copy the full SHA 5112f6fView commit details -
bigquery: work around typing fault in library
Signed-off-by: Dorian Johnson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 9b31891 - Browse repository at this point
Copy the full SHA 9b31891View commit details -
cassandra: specify types more accurately
This was tricky because the code conflates the objects themselves and their names. We also have classes named `TableMetadata` and `ColumnMetadata` which shadow those in the Cassandra package Signed-off-by: Dorian Johnson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for e1e3ef1 - Browse repository at this point
Copy the full SHA e1e3ef1View commit details -
typing: fix remaining easy type errors (12 remain)
Signed-off-by: Dorian Johnson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 9d440f0 - Browse repository at this point
Copy the full SHA 9d440f0View commit details -
bigquery: fix types and move method to subclass
`_iterate_over_tables` was attached to the super class but reached into methods that only the subclass had. Move that over, and add best-guess typings to the rest. This class is really a mess type wise, there's a ton of dict-typing going on, should clean it up later. Signed-off-by: Dorian Johnson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 0931b5c - Browse repository at this point
Copy the full SHA 0931b5cView commit details -
bigquery: fix typing errors in BigQueryTableUsageExtractor
Signed-off-by: Dorian Johnson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 3734d86 - Browse repository at this point
Copy the full SHA 3734d86View commit details -
bigquery: move _iterate_over_tables back to base class
Am going to unwind this later Signed-off-by: Dorian Johnson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for d8b1545 - Browse repository at this point
Copy the full SHA d8b1545View commit details -
fix a few loose ends and syntax errors
Signed-off-by: Dorian Johnson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 0120539 - Browse repository at this point
Copy the full SHA 0120539View commit details -
tests: fix HttpFailureSkipOnStatus semantics
I fixed the original incorrectly, reading the `or` as an `and`, which thankfully caused a test failure. However, I believe the original code which tested `isinstance(exception, HTTPError)` to be incorrect -- we don't need that guard if we're just grabbing the value regardless. Signed-off-by: Dorian Johnson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for bc74aa0 - Browse repository at this point
Copy the full SHA bc74aa0View commit details -
chore: fix lint errors introduced during typing
Signed-off-by: Dorian Johnson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 2fb6e14 - Browse repository at this point
Copy the full SHA 2fb6e14View commit details -
lint: remove extraneous comma in list literals
Signed-off-by: Dorian Johnson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 2766e08 - Browse repository at this point
Copy the full SHA 2766e08View commit details -
tests: fix typing in TestHiveTableLastUpdatedExtractor util
Signed-off-by: Dorian Johnson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 81d93f4 - Browse repository at this point
Copy the full SHA 81d93f4View commit details