Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions metadata-ingestion/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand Down Expand Up @@ -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",
Expand All @@ -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",
Expand Down Expand Up @@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand Down Expand Up @@ -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",
Expand Down
6 changes: 6 additions & 0 deletions metadata-ingestion/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -1104,13 +1104,17 @@
"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 [
"abs",
"aerospike",
"airbyte",
"athena",
"azure-data-factory",
"bigquery",
"clickhouse",
"clickhouse-usage",
Expand Down Expand Up @@ -1195,6 +1199,8 @@
"omni",
"aws-secret-manager",
"gcp-secret-manager",
"debug-recording",
"montecarlo",
]
if plugin
for dependency in plugins[plugin]
Expand Down
20 changes: 20 additions & 0 deletions metadata-ingestion/uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions smoke-test/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,17 @@ 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 . && " +
"ruff format --check . && " +
"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 . && " +
Expand Down