boundless-student-48844
09/08/2022, 3:36 PM:metadata-ingestion:lint task failed due to lint errors when running mypy command. There are 72 errors, listed in thread. A suggestion - do you think if lint check can be enforced when there are PRs to metadata-ingestion for better QA? 😅
mypy src/ tests/ examples/
boundless-student-48844
09/08/2022, 3:36 PMsrc/datahub/configuration/common.py:103: error: Incompatible types in assignment (expression has type "bool", variable has type "Optional[str]")
src/datahub/ingestion/source/glue_profiling_config.py:7: error: Incompatible types in assignment (expression has type "None", variable has type "str")
src/datahub/ingestion/source/glue_profiling_config.py:11: error: Incompatible types in assignment (expression has type "None", variable has type "str")
src/datahub/ingestion/source/glue_profiling_config.py:15: error: Incompatible types in assignment (expression has type "None", variable has type "str")
src/datahub/ingestion/source/glue_profiling_config.py:19: error: Incompatible types in assignment (expression has type "None", variable has type "str")
src/datahub/ingestion/source/glue_profiling_config.py:23: error: Incompatible types in assignment (expression has type "None", variable has type "int")
src/datahub/ingestion/source/glue_profiling_config.py:27: error: Incompatible types in assignment (expression has type "None", variable has type "str")
src/datahub/ingestion/source/glue_profiling_config.py:31: error: Incompatible types in assignment (expression has type "None", variable has type "str")
src/datahub/ingestion/source/glue_profiling_config.py:35: error: Incompatible types in assignment (expression has type "None", variable has type "str")
src/datahub/ingestion/source/glue_profiling_config.py:39: error: Incompatible types in assignment (expression has type "None", variable has type "str")
src/datahub/ingestion/source/glue_profiling_config.py:43: error: Incompatible types in assignment (expression has type "None", variable has type "str")
src/datahub/ingestion/source/glue_profiling_config.py:47: error: Incompatible types in assignment (expression has type "None", variable has type "str")
src/datahub/ingestion/source/mode.py:71: error: Incompatible types in assignment (expression has type "None", variable has type "str")
src/datahub/ingestion/source/mode.py:72: error: Incompatible types in assignment (expression has type "None", variable has type "str")
src/datahub/ingestion/source/metabase.py:51: error: Incompatible types in assignment (expression has type "None", variable has type "str")
src/datahub/ingestion/source/metabase.py:52: error: Incompatible types in assignment (expression has type "None", variable has type "str")
src/datahub/ingestion/source/ldap.py:100: error: Incompatible types in assignment (expression has type "None", variable has type "List[str]")
src/datahub/ingestion/source_config/sql/snowflake.py:84: error: Incompatible types in assignment (expression has type "None", variable has type "SecretStr")
src/datahub/ingestion/source/superset.py:62: error: Incompatible types in assignment (expression has type "None", variable has type "str")
src/datahub/ingestion/source/dbt.py:156: error: Incompatible types in assignment (expression has type "str", variable has type "EmitDirective")
src/datahub/ingestion/source/dbt.py:159: error: Incompatible types in assignment (expression has type "str", variable has type "EmitDirective")
src/datahub/ingestion/source/dbt.py:162: error: Incompatible types in assignment (expression has type "str", variable has type "EmitDirective")
src/datahub/ingestion/source/dbt.py:165: error: Incompatible types in assignment (expression has type "str", variable has type "EmitDirective")
src/datahub/ingestion/source/dbt.py:169: error: Incompatible types in assignment (expression has type "str", variable has type "EmitDirective")
src/datahub/ingestion/source/usage/starburst_trino_usage.py:65: error: Incompatible types in assignment (expression has type "None", variable has type "str")
src/datahub/ingestion/source/usage/starburst_trino_usage.py:69: error: Incompatible types in assignment (expression has type "None", variable has type "TrinoConnectorInfo")
src/datahub/ingestion/source/usage/starburst_trino_usage.py:76: error: Incompatible types in assignment (expression has type "None", variable has type "str")
src/datahub/ingestion/source/usage/starburst_trino_usage.py:80: error: Incompatible types in assignment (expression has type "None", variable has type "datetime")
src/datahub/ingestion/source/usage/starburst_trino_usage.py:81: error: Incompatible types in assignment (expression has type "None", variable has type "datetime")
src/datahub/ingestion/source/delta_lake/config.py:22: error: Incompatible types in assignment (expression has type "None", variable has type "AwsSourceConfig")
src/datahub/ingestion/source/delta_lake/config.py:43: error: Incompatible types in assignment (expression has type "None", variable has type "str")
src/datahub/ingestion/source/aws/glue.py:126: error: Incompatible types in assignment (expression has type "None", variable has type "GlueProfilingConfig")
src/datahub/ingestion/source/usage/redshift_usage.py:137: error: Incompatible types in assignment (expression has type "None", variable has type "str")
tests/unit/test_iceberg.py:31: error: Missing named argument "sas_token" for "AdlsSourceConfig"
tests/unit/test_iceberg.py:31: error: Missing named argument "client_secret" for "AdlsSourceConfig"
tests/unit/test_iceberg.py:31: error: Missing named argument "client_id" for "AdlsSourceConfig"
tests/unit/test_iceberg.py:31: error: Missing named argument "tenant_id" for "AdlsSourceConfig"
tests/unit/test_iceberg.py:36: error: Missing named argument "localfs" for "IcebergSourceConfig"
tests/unit/test_iceberg.py:36: error: Missing named argument "group_ownership_property" for "IcebergSourceConfig"
tests/unit/test_iceberg.py:62: error: Missing named argument "account_key" for "AdlsSourceConfig"
tests/unit/test_iceberg.py:62: error: Missing named argument "sas_token" for "AdlsSourceConfig"
tests/unit/test_iceberg.py:62: error: Missing named argument "client_secret" for "AdlsSourceConfig"
tests/unit/test_iceberg.py:62: error: Missing named argument "client_id" for "AdlsSourceConfig"
tests/unit/test_iceberg.py:62: error: Missing named argument "tenant_id" for "AdlsSourceConfig"
tests/unit/test_iceberg.py:69: error: Missing named argument "account_key" for "AdlsSourceConfig"
tests/unit/test_iceberg.py:69: error: Missing named argument "client_secret" for "AdlsSourceConfig"
tests/unit/test_iceberg.py:69: error: Missing named argument "client_id" for "AdlsSourceConfig"
tests/unit/test_iceberg.py:69: error: Missing named argument "tenant_id" for "AdlsSourceConfig"
tests/unit/test_iceberg.py:76: error: Missing named argument "sas_token" for "AdlsSourceConfig"
tests/unit/test_iceberg.py:76: error: Missing named argument "client_secret" for "AdlsSourceConfig"
tests/unit/test_iceberg.py:76: error: Missing named argument "client_id" for "AdlsSourceConfig"
tests/unit/test_iceberg.py:76: error: Missing named argument "tenant_id" for "AdlsSourceConfig"
tests/unit/test_iceberg.py:83: error: Missing named argument "account_key" for "AdlsSourceConfig"
tests/unit/test_iceberg.py:83: error: Missing named argument "sas_token" for "AdlsSourceConfig"
tests/unit/test_iceberg.py:93: error: Missing named argument "account_key" for "AdlsSourceConfig"
tests/unit/test_iceberg.py:93: error: Missing named argument "sas_token" for "AdlsSourceConfig"
tests/unit/test_iceberg.py:93: error: Missing named argument "tenant_id" for "AdlsSourceConfig"
tests/unit/test_iceberg.py:102: error: Missing named argument "account_key" for "AdlsSourceConfig"
tests/unit/test_iceberg.py:102: error: Missing named argument "sas_token" for "AdlsSourceConfig"
tests/unit/test_iceberg.py:102: error: Missing named argument "client_id" for "AdlsSourceConfig"
tests/unit/test_iceberg.py:111: error: Missing named argument "account_key" for "AdlsSourceConfig"
tests/unit/test_iceberg.py:111: error: Missing named argument "sas_token" for "AdlsSourceConfig"
tests/unit/test_iceberg.py:111: error: Missing named argument "client_secret" for "AdlsSourceConfig"
tests/unit/test_iceberg.py:133: error: Missing named argument "adls" for "IcebergSourceConfig"
tests/unit/test_iceberg.py:133: error: Missing named argument "localfs" for "IcebergSourceConfig"
tests/unit/test_iceberg.py:133: error: Missing named argument "group_ownership_property" for "IcebergSourceConfig"
tests/unit/test_iceberg.py:142: error: Missing named argument "account_key" for "AdlsSourceConfig"
tests/unit/test_iceberg.py:142: error: Missing named argument "sas_token" for "AdlsSourceConfig"
tests/unit/test_iceberg.py:142: error: Missing named argument "client_secret" for "AdlsSourceConfig"
tests/unit/test_iceberg.py:142: error: Missing named argument "client_id" for "AdlsSourceConfig"
tests/unit/test_iceberg.py:142: error: Missing named argument "tenant_id" for "AdlsSourceConfig"
tests/unit/test_iceberg.py:147: error: Missing named argument "group_ownership_property" for "IcebergSourceConfig"
Found 72 errors in 13 files (checked 517 source files)hundreds-photographer-13496
09/09/2022, 6:00 AMacceptable-judge-21659
09/21/2022, 9:48 AMhundreds-photographer-13496
09/21/2022, 12:06 PMacceptable-judge-21659
09/21/2022, 12:07 PMacceptable-judge-21659
09/21/2022, 12:08 PMboundless-student-48844
09/21/2022, 12:09 PMboundless-student-48844
09/21/2022, 12:11 PM