diff --git a/metadata-ingestion/pyproject.toml b/metadata-ingestion/pyproject.toml index 8f36ffeba216..d1774bdd2581 100644 --- a/metadata-ingestion/pyproject.toml +++ b/metadata-ingestion/pyproject.toml @@ -1383,6 +1383,7 @@ dev = [ "avro>=1.11.3,<1.13", "azure-core>=1.38.0,<2.0.0", "azure-identity>=1.21.0,<2.0.0", + "azure-mgmt-datafactory>=9.0.0,<10.0.0", "azure-storage-blob>=12.19.0,<13.0.0", "azure-storage-file-datalake>=12.14.0,<13.0.0", "boto3-stubs[s3,glue,sagemaker,sts,dynamodb,kinesis,firehose,lakeformation,quicksight]==1.40.0", @@ -1485,6 +1486,7 @@ dev = [ "pure-sasl>=0.6.2,<1.0.0", "pyarrow>14.0.0,<24.0.0", "PyAthena[SQLAlchemy]>=3.0.0,<4.0.0", + "pycarlo>=0.15.262,<1.0.0", "pydantic>=2.4.0,<3.0.0", "pydruid>=0.6.2,<=0.6.9", "pyiceberg[glue,hive,dynamodb,snappy,s3fs,adlfs,pyarrow]>=0.11.0,<0.12.0", @@ -1506,6 +1508,7 @@ dev = [ "python-ldap>=2.4,<4.0.0", "python-liquid>=2.0.0,<3.0.0", "PyYAML<7.0.0", + "pyzipper>=0.3.6,<1.0", "rdflib==6.3.2", "redash-toolbelt<0.2.0", "redshift-connector>=2.1.14,<3.0.0", @@ -1514,6 +1517,7 @@ dev = [ "requests>=2.27,==2.32.5,<3.0.0", "requests_file==3.0.1,<4.0.0", "requests_ntlm<2.0.0", + "responses>=0.25.0,<1.0", "ruamel.yaml<0.20.0", "ruff==0.15.22", "sentry-sdk>=1.33.1,<3.0.0", @@ -1567,6 +1571,7 @@ dev = [ "unstructured[md]==0.27.37", "urllib3>=2.5.0,<3.0", "uvicorn<0.41.0", + "vcrpy>=8.2.0,<9.0", "wcmatch>=10.1,<13.0.0", "websocket-client<2.0.0", "zstd<1.5.6.8", @@ -1582,6 +1587,7 @@ docs = [ "avro>=1.11.3,<1.13", "azure-core>=1.38.0,<2.0.0", "azure-identity>=1.21.0,<2.0.0", + "azure-mgmt-datafactory>=9.0.0,<10.0.0", "azure-storage-blob>=12.19.0,<13.0.0", "azure-storage-file-datalake>=12.14.0,<13.0.0", "boto3-stubs[s3,glue,sagemaker,sts,dynamodb,kinesis,firehose,lakeformation,quicksight]==1.40.0", @@ -1684,6 +1690,7 @@ docs = [ "pure-sasl>=0.6.2,<1.0.0", "pyarrow>14.0.0,<24.0.0", "PyAthena[SQLAlchemy]>=3.0.0,<4.0.0", + "pycarlo>=0.15.262,<1.0.0", "pydantic>=2.4.0,<3.0.0", "pydruid>=0.6.2,<=0.6.9", "pyiceberg[glue,hive,dynamodb,snappy,s3fs,adlfs,pyarrow]>=0.11.0,<0.12.0", @@ -1705,6 +1712,7 @@ docs = [ "python-ldap>=2.4,<4.0.0", "python-liquid>=2.0.0,<3.0.0", "PyYAML<7.0.0", + "pyzipper>=0.3.6,<1.0", "rdflib==6.3.2", "redash-toolbelt<0.2.0", "redshift-connector>=2.1.14,<3.0.0", @@ -1713,6 +1721,7 @@ docs = [ "requests>=2.27,==2.32.5,<3.0.0", "requests_file==3.0.1,<4.0.0", "requests_ntlm<2.0.0", + "responses>=0.25.0,<1.0", "ruamel.yaml<0.20.0", "ruff==0.15.22", "sentry-sdk>=1.33.1,<3.0.0", @@ -1766,6 +1775,7 @@ docs = [ "unstructured[md]==0.27.37", "urllib3>=2.5.0,<3.0", "uvicorn<0.41.0", + "vcrpy>=8.2.0,<9.0", "wcmatch>=10.1,<13.0.0", "websocket-client<2.0.0", "zstd<1.5.6.8", diff --git a/metadata-ingestion/setup.py b/metadata-ingestion/setup.py index 6d8a228faf3c..55223307a3c0 100644 --- a/metadata-ingestion/setup.py +++ b/metadata-ingestion/setup.py @@ -1104,6 +1104,9 @@ "jsonpickle<5.0.0", "build<2.0.0", "twine<7.0.0", + # CI lint runs mypy in the [dev] venv with ignore_missing_imports, so a plugin + # whose SDK is not installed here is type-checked as Any. Add a plugin here when + # its source or tests import its SDK. *list( dependency for plugin in [ @@ -1111,6 +1114,7 @@ "aerospike", "airbyte", "athena", + "azure-data-factory", "bigquery", "clickhouse", "clickhouse-usage", @@ -1195,6 +1199,8 @@ "omni", "aws-secret-manager", "gcp-secret-manager", + "debug-recording", + "montecarlo", ] if plugin for dependency in plugins[plugin] diff --git a/metadata-ingestion/uv.lock b/metadata-ingestion/uv.lock index a9df4c30afeb..cc278402c0d2 100644 --- a/metadata-ingestion/uv.lock +++ b/metadata-ingestion/uv.lock @@ -485,6 +485,7 @@ dev = [ { name = "avro-gen3" }, { name = "azure-core" }, { name = "azure-identity" }, + { name = "azure-mgmt-datafactory" }, { name = "azure-storage-blob" }, { name = "azure-storage-file-datalake" }, { name = "boto3" }, @@ -588,6 +589,7 @@ dev = [ { name = "pure-sasl" }, { name = "pyarrow" }, { name = "pyathena", extra = ["sqlalchemy"] }, + { name = "pycarlo" }, { name = "pydantic" }, { name = "pydruid" }, { name = "pyiceberg", extra = ["adlfs", "dynamodb", "glue", "hive", "pyarrow", "s3fs", "snappy"] }, @@ -609,6 +611,7 @@ dev = [ { name = "python-ldap" }, { name = "python-liquid" }, { name = "pyyaml" }, + { name = "pyzipper" }, { name = "rdflib" }, { name = "redash-toolbelt" }, { name = "redshift-connector" }, @@ -617,6 +620,7 @@ dev = [ { name = "requests-gssapi" }, { name = "requests-mock" }, { name = "requests-ntlm" }, + { name = "responses" }, { name = "ruamel-yaml" }, { name = "ruff" }, { name = "sentry-sdk" }, @@ -670,6 +674,7 @@ dev = [ { name = "unstructured-ingest", extra = ["confluence", "notion"] }, { name = "urllib3" }, { name = "uvicorn" }, + { name = "vcrpy" }, { name = "wcmatch" }, { name = "websocket-client" }, { name = "zstd" }, @@ -687,6 +692,7 @@ docs = [ { name = "avro-gen3" }, { name = "azure-core" }, { name = "azure-identity" }, + { name = "azure-mgmt-datafactory" }, { name = "azure-storage-blob" }, { name = "azure-storage-file-datalake" }, { name = "boto3" }, @@ -790,6 +796,7 @@ docs = [ { name = "pure-sasl" }, { name = "pyarrow" }, { name = "pyathena", extra = ["sqlalchemy"] }, + { name = "pycarlo" }, { name = "pydantic" }, { name = "pydruid" }, { name = "pyiceberg", extra = ["adlfs", "dynamodb", "glue", "hive", "pyarrow", "s3fs", "snappy"] }, @@ -811,6 +818,7 @@ docs = [ { name = "python-ldap" }, { name = "python-liquid" }, { name = "pyyaml" }, + { name = "pyzipper" }, { name = "rdflib" }, { name = "redash-toolbelt" }, { name = "redshift-connector" }, @@ -819,6 +827,7 @@ docs = [ { name = "requests-gssapi" }, { name = "requests-mock" }, { name = "requests-ntlm" }, + { name = "responses" }, { name = "ruamel-yaml" }, { name = "ruff" }, { name = "sentry-sdk" }, @@ -872,6 +881,7 @@ docs = [ { name = "unstructured-ingest", extra = ["confluence", "notion"] }, { name = "urllib3" }, { name = "uvicorn" }, + { name = "vcrpy" }, { name = "wcmatch" }, { name = "websocket-client" }, { name = "zstd" }, @@ -1752,6 +1762,8 @@ requires-dist = [ { name = "azure-identity", marker = "extra == 'integration-tests'", specifier = ">=1.21.0,<2.0.0" }, { name = "azure-mgmt-datafactory", marker = "extra == 'all'", specifier = ">=9.0.0,<10.0.0" }, { name = "azure-mgmt-datafactory", marker = "extra == 'azure-data-factory'", specifier = ">=9.0.0,<10.0.0" }, + { name = "azure-mgmt-datafactory", marker = "extra == 'dev'", specifier = ">=9.0.0,<10.0.0" }, + { name = "azure-mgmt-datafactory", marker = "extra == 'docs'", specifier = ">=9.0.0,<10.0.0" }, { name = "azure-mgmt-datafactory", marker = "extra == 'integration-tests'", specifier = ">=9.0.0,<10.0.0" }, { name = "azure-storage-blob", marker = "extra == 'abs'", specifier = ">=12.19.0,<13.0.0" }, { name = "azure-storage-blob", marker = "extra == 'abs-slim'", specifier = ">=12.19.0,<13.0.0" }, @@ -2463,6 +2475,8 @@ requires-dist = [ { name = "pyathena", extras = ["sqlalchemy"], marker = "extra == 'docs'", specifier = ">=3.0.0,<4.0.0" }, { name = "pyathena", extras = ["sqlalchemy"], marker = "extra == 'integration-tests'", specifier = ">=3.0.0,<4.0.0" }, { name = "pycarlo", marker = "extra == 'all'", specifier = ">=0.15.262,<1.0.0" }, + { name = "pycarlo", marker = "extra == 'dev'", specifier = ">=0.15.262,<1.0.0" }, + { name = "pycarlo", marker = "extra == 'docs'", specifier = ">=0.15.262,<1.0.0" }, { name = "pycarlo", marker = "extra == 'integration-tests'", specifier = ">=0.15.262,<1.0.0" }, { name = "pycarlo", marker = "extra == 'montecarlo'", specifier = ">=0.15.262,<1.0.0" }, { name = "pydantic", specifier = ">=2.4.0,<3.0.0" }, @@ -2553,6 +2567,8 @@ requires-dist = [ { name = "pyyaml", marker = "extra == 'docs'", specifier = "<7.0.0" }, { name = "pyyaml", marker = "extra == 'testing-utils'", specifier = "<7.0.0" }, { name = "pyzipper", marker = "extra == 'debug-recording'", specifier = ">=0.3.6,<1.0" }, + { name = "pyzipper", marker = "extra == 'dev'", specifier = ">=0.3.6,<1.0" }, + { name = "pyzipper", marker = "extra == 'docs'", specifier = ">=0.3.6,<1.0" }, { name = "pyzipper", marker = "extra == 'integration-tests'", specifier = ">=0.3.6,<1.0" }, { name = "rdflib", marker = "extra == 'all'", specifier = "==6.3.2" }, { name = "rdflib", marker = "extra == 'dev'", specifier = "==6.3.2" }, @@ -2626,6 +2642,8 @@ requires-dist = [ { name = "requests-ntlm", marker = "extra == 'docs'", specifier = "<2.0.0" }, { name = "requests-ntlm", marker = "extra == 'powerbi-report-server'", specifier = "<2.0.0" }, { name = "responses", marker = "extra == 'debug-recording'", specifier = ">=0.25.0,<1.0" }, + { name = "responses", marker = "extra == 'dev'", specifier = ">=0.25.0,<1.0" }, + { name = "responses", marker = "extra == 'docs'", specifier = ">=0.25.0,<1.0" }, { name = "responses", marker = "extra == 'integration-tests'", specifier = ">=0.25.0,<1.0" }, { name = "ruamel-yaml", specifier = "<0.20.0" }, { name = "ruamel-yaml", marker = "extra == 'dev'", specifier = "<0.20.0" }, @@ -3033,6 +3051,8 @@ requires-dist = [ { name = "uvicorn", marker = "extra == 'dev'", specifier = "<0.41.0" }, { name = "uvicorn", marker = "extra == 'docs'", specifier = "<0.41.0" }, { name = "vcrpy", marker = "extra == 'debug-recording'", specifier = ">=8.2.0,<9.0" }, + { name = "vcrpy", marker = "extra == 'dev'", specifier = ">=8.2.0,<9.0" }, + { name = "vcrpy", marker = "extra == 'docs'", specifier = ">=8.2.0,<9.0" }, { name = "vcrpy", marker = "extra == 'integration-tests'", specifier = ">=8.2.0,<9.0" }, { name = "wcmatch", marker = "extra == 'abs'", specifier = ">=10.1,<13.0.0" }, { name = "wcmatch", marker = "extra == 'abs-slim'", specifier = ">=10.1,<13.0.0" }, diff --git a/smoke-test/build.gradle b/smoke-test/build.gradle index 01e1c99e2053..bd0b4d0a4112 100644 --- a/smoke-test/build.gradle +++ b/smoke-test/build.gradle @@ -43,7 +43,9 @@ task installDev(type: Exec) { "touch ${venv_name}/.build_install_dev_sentinel" } -task pythonLint(type: Exec, dependsOn: installDev) { +// codegen: without the generated datahub.metadata.schema_classes, mypy (ignore_missing_imports) +// treats every schema class as Any and misses type errors in tests that use them. +task pythonLint(type: Exec, dependsOn: [installDev, ':metadata-ingestion:codegen']) { commandLine 'bash', '-c', "source ${venv_name}/bin/activate && set -x && " + "ruff check . && " + @@ -51,7 +53,7 @@ task pythonLint(type: Exec, dependsOn: installDev) { "mypy ." } -task pythonLintFix(type: Exec, dependsOn: installDev) { +task pythonLintFix(type: Exec, dependsOn: [installDev, ':metadata-ingestion:codegen']) { commandLine 'bash', '-c', "source ${venv_name}/bin/activate && set -x && " + "ruff check --fix . && " +