This is an automated email from the ASF dual-hosted git repository.
rusackas pushed a change to branch ci/lint-no-function-body-imports
in repository https://gitbox.apache.org/repos/asf/superset.git
discard d0c5eece5a2 ci(lint): enforce no function-body imports (PLC0415) via
pre-commit
add dfd3f7b3167 ci(lint): enforce no function-body imports (PLC0415) with
targeted ignores
This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version. This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:
* -- * -- B -- O -- O -- O (d0c5eece5a2)
\
N -- N -- N refs/heads/ci/lint-no-function-body-imports
(dfd3f7b3167)
You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.
Any revisions marked "omit" are not gone; other references still
refer to them. Any revisions marked "discard" are gone forever.
No new revisions were added by this update.
Summary of changes:
pyproject.toml | 28 +++-
scripts/erd/erd.py | 2 +-
superset/app.py | 12 +-
superset/charts/schemas.py | 2 +-
superset/cli/examples.py | 4 +-
superset/cli/export_example.py | 16 +-
superset/cli/importexport.py | 42 ++---
superset/cli/main.py | 2 +-
superset/cli/mcp.py | 2 +-
superset/cli/reset.py | 4 +-
superset/cli/thumbnails.py | 6 +-
superset/cli/update.py | 6 +-
superset/commands/importers/v1/utils.py | 2 +-
superset/common/query_context_processor.py | 2 +-
superset/core/api/core_api_injection.py | 4 +-
superset/daos/tasks.py | 2 +-
superset/datasets/api.py | 2 +-
superset/db_engine_specs/aws_iam.py | 20 +--
superset/db_engine_specs/base.py | 6 +-
superset/db_engine_specs/bigquery.py | 2 +-
superset/db_engine_specs/clickhouse.py | 6 +-
superset/db_engine_specs/databricks.py | 2 +-
superset/db_engine_specs/datastore.py | 2 +-
superset/db_engine_specs/denodo.py | 2 +-
superset/db_engine_specs/druid.py | 2 +-
superset/db_engine_specs/elasticsearch.py | 2 +-
superset/db_engine_specs/gsheets.py | 11 +-
superset/db_engine_specs/hive.py | 14 +-
superset/db_engine_specs/kusto.py | 4 +-
superset/db_engine_specs/lib.py | 8 +-
superset/db_engine_specs/lint_metadata.py | 14 +-
superset/db_engine_specs/mysql.py | 6 +-
superset/db_engine_specs/postgres.py | 6 +-
superset/db_engine_specs/presto.py | 2 +-
superset/db_engine_specs/redshift.py | 4 +-
superset/db_engine_specs/trino.py | 6 +-
superset/distributed_lock/__init__.py | 4 +-
superset/extensions/utils.py | 2 +-
superset/initialization/__init__.py | 185 +++++++++-----------
superset/mcp_service/__main__.py | 4 +-
superset/mcp_service/app.py | 2 +-
superset/mcp_service/auth.py | 46 +++--
superset/mcp_service/caching.py | 8 +-
superset/mcp_service/chart/chart_helpers.py | 26 +--
superset/mcp_service/chart/chart_utils.py | 30 ++--
superset/mcp_service/chart/compile.py | 20 +--
superset/mcp_service/chart/preview_utils.py | 16 +-
.../mcp_service/chart/resources/chart_configs.py | 2 +-
superset/mcp_service/chart/schemas.py | 14 +-
superset/mcp_service/chart/tool/generate_chart.py | 54 +++---
superset/mcp_service/chart/tool/get_chart_data.py | 42 ++---
superset/mcp_service/chart/tool/get_chart_info.py | 8 +-
.../mcp_service/chart/tool/get_chart_preview.py | 44 ++---
superset/mcp_service/chart/tool/get_chart_sql.py | 32 ++--
superset/mcp_service/chart/tool/list_charts.py | 4 +-
superset/mcp_service/chart/tool/update_chart.py | 22 +--
.../mcp_service/chart/tool/update_chart_preview.py | 12 +-
.../chart/validation/dataset_validator.py | 12 +-
superset/mcp_service/chart/validation/pipeline.py | 16 +-
.../chart/validation/runtime/__init__.py | 6 +-
superset/mcp_service/common/schema_discovery.py | 8 +-
superset/mcp_service/dashboard/schemas.py | 26 +--
.../tool/add_chart_to_existing_dashboard.py | 30 ++--
.../dashboard/tool/generate_dashboard.py | 24 ++-
.../dashboard/tool/get_dashboard_info.py | 10 +-
.../mcp_service/dashboard/tool/list_dashboards.py | 4 +-
superset/mcp_service/database/schemas.py | 2 +-
.../mcp_service/database/tool/get_database_info.py | 2 +-
.../mcp_service/database/tool/list_databases.py | 4 +-
superset/mcp_service/dataset/schemas.py | 6 +-
.../dataset/tool/create_virtual_dataset.py | 10 +-
.../mcp_service/dataset/tool/get_dataset_info.py | 4 +-
superset/mcp_service/dataset/tool/list_datasets.py | 4 +-
superset/mcp_service/dataset/tool/query_dataset.py | 12 +-
.../explore/tool/generate_explore_link.py | 4 +-
superset/mcp_service/mcp_config.py | 6 +-
superset/mcp_service/mcp_core.py | 2 +-
superset/mcp_service/middleware.py | 34 ++--
superset/mcp_service/privacy.py | 4 +-
.../mcp_service/screenshot/pooled_screenshot.py | 12 +-
.../mcp_service/screenshot/webdriver_config.py | 6 +-
superset/mcp_service/server.py | 32 ++--
superset/mcp_service/simple_proxy.py | 2 +-
superset/mcp_service/sql_lab/tool/execute_sql.py | 14 +-
.../sql_lab/tool/open_sql_lab_with_context.py | 2 +-
.../mcp_service/sql_lab/tool/save_sql_query.py | 14 +-
superset/mcp_service/storage.py | 6 +-
.../system/resources/instance_metadata.py | 28 ++--
.../system/resources/schema_discovery.py | 10 +-
superset/mcp_service/system/system_utils.py | 19 +--
.../mcp_service/system/tool/get_instance_info.py | 16 +-
superset/mcp_service/system/tool/get_schema.py | 12 +-
superset/mcp_service/utils/__init__.py | 2 +-
superset/mcp_service/utils/cache_utils.py | 2 +-
superset/mcp_service/utils/permissions_utils.py | 4 +-
superset/mcp_service/utils/schema_utils.py | 4 +-
superset/mcp_service/utils/token_utils.py | 10 +-
...14-38_a9422eeaae74_new_dataset_models_take_2.py | 2 +-
...cd1fb11291f2_add_theme_id_to_dashboard_model.py | 2 +-
superset/models/helpers.py | 4 +-
superset/models/slice.py | 2 +-
superset/semantic_layers/labels.py | 2 +-
superset/sql/execution/executor.py | 4 +-
superset/sqllab/query_render.py | 2 +-
superset/tasks/api.py | 12 +-
superset/tasks/async_queries.py | 4 +-
superset/tasks/context.py | 18 +-
superset/tasks/decorators.py | 16 +-
superset/tasks/filters.py | 8 +-
superset/tasks/manager.py | 8 +-
superset/tasks/scheduler.py | 4 +-
superset/tasks/schemas.py | 2 +-
superset/tasks/thumbnails.py | 6 +-
superset/utils/decorators.py | 2 +-
superset/utils/encrypt.py | 2 +-
superset/views/api.py | 2 +-
tests/integration_tests/base_api_tests.py | 2 +-
tests/integration_tests/charts/api_tests.py | 2 +-
tests/integration_tests/charts/commands_tests.py | 10 +-
tests/integration_tests/charts/data/api_tests.py | 8 +-
tests/integration_tests/cli_tests.py | 16 +-
tests/integration_tests/conftest.py | 30 +---
tests/integration_tests/dao/base_dao_test.py | 4 +-
tests/integration_tests/dao/conftest.py | 4 +-
tests/integration_tests/dashboards/api_tests.py | 12 +-
.../dashboards/permalink/api_tests.py | 7 +-
.../dashboards/test_theme_integration.py | 12 +-
tests/integration_tests/databases/api_tests.py | 4 +-
tests/integration_tests/datasets/api_tests.py | 2 +-
tests/integration_tests/datasource_tests.py | 4 +-
.../db_engine_specs/datastore_tests.py | 6 +-
.../db_engine_specs/hive_tests.py | 6 +-
.../db_engine_specs/mysql_tests.py | 2 +-
.../db_engine_specs/postgres_tests.py | 2 +-
.../db_engine_specs/presto_tests.py | 8 +-
tests/integration_tests/event_logger_tests.py | 4 +-
.../explore/permalink/api_tests.py | 9 +-
.../extensions/metastore_cache_test.py | 4 +-
.../fixtures/birth_names_dashboard.py | 10 +-
.../fixtures/world_bank_dashboard.py | 6 +-
tests/integration_tests/query_context_tests.py | 6 +-
tests/integration_tests/reports/alert_tests.py | 33 ++--
tests/integration_tests/reports/commands_tests.py | 20 +--
tests/integration_tests/reports/scheduler_tests.py | 6 +-
tests/integration_tests/sql_lab/api_tests.py | 4 +-
.../sql_lab/permalink/api_tests.py | 7 +-
.../sql_lab/test_execute_sql_statements.py | 4 +-
tests/integration_tests/sqla_models_tests.py | 14 +-
tests/integration_tests/tasks/api_tests.py | 4 +-
.../integration_tests/tasks/async_queries_tests.py | 24 +--
tests/integration_tests/tasks/test_cache.py | 2 +-
.../integration_tests/tasks/test_sync_join_wait.py | 4 +-
tests/integration_tests/tasks/test_throttling.py | 6 +-
tests/integration_tests/tasks/test_utils.py | 2 +-
tests/integration_tests/utils/encrypt_tests.py | 26 +--
tests/integration_tests/viz_tests.py | 4 +-
.../charts/commands/data/test_get_data_command.py | 18 +-
.../charts/commands/importers/v1/import_test.py | 8 +-
tests/unit_tests/charts/dao/dao_tests.py | 12 +-
tests/unit_tests/charts/test_client_processing.py | 6 +-
.../charts/test_dashboard_filter_context.py | 12 +-
.../commands/chart/warm_up_cache_test.py | 4 +-
tests/unit_tests/commands/dashboard/export_test.py | 16 +-
.../commands/databases/csv_reader_test.py | 24 +--
.../databases/importers/v1/command_test.py | 24 +--
tests/unit_tests/commands/dataset/test_create.py | 4 +-
tests/unit_tests/commands/dataset/update_test.py | 26 +--
tests/unit_tests/commands/export_test.py | 2 +-
.../commands/importers/v1/assets_test.py | 126 ++++++--------
.../commands/importers/v1/examples_test.py | 6 +-
tests/unit_tests/commands/report/alert_test.py | 4 +-
tests/unit_tests/commands/report/execute_test.py | 26 +--
.../commands/semantic_layer/create_test.py | 16 +-
.../commands/semantic_layer/delete_test.py | 42 ++---
.../commands/semantic_layer/update_test.py | 2 +-
.../common/test_query_context_processor.py | 46 ++---
.../unit_tests/common/test_query_object_factory.py | 2 +-
tests/unit_tests/config_test.py | 4 +-
tests/unit_tests/conftest.py | 2 +-
tests/unit_tests/connectors/sqla/models_test.py | 6 +-
tests/unit_tests/dao/dataset_test.py | 6 +-
tests/unit_tests/dao/key_value_test.py | 46 ++---
tests/unit_tests/dao/queries_test.py | 66 ++++----
tests/unit_tests/dao/tag_test.py | 24 +--
tests/unit_tests/daos/test_tasks.py | 44 ++---
.../commands/importers/v1/import_command_test.py | 40 ++---
.../dashboards/commands/importers/v1/utils_test.py | 38 ++---
tests/unit_tests/dashboards/dao_tests.py | 6 +-
.../dashboards/test_chart_customizations_dao.py | 4 +-
tests/unit_tests/databases/api_test.py | 62 +++----
.../databases/commands/importers/v1/import_test.py | 130 +++++---------
tests/unit_tests/databases/dao/dao_tests.py | 12 +-
tests/unit_tests/databases/filters_test.py | 4 +-
tests/unit_tests/databases/schema_tests.py | 35 ++--
tests/unit_tests/datasets/api_tests.py | 8 +-
tests/unit_tests/datasets/commands/export_test.py | 16 +-
.../datasets/commands/importers/v1/import_test.py | 8 +-
tests/unit_tests/datasets/conftest.py | 4 +-
tests/unit_tests/datasets/dao/dao_tests.py | 16 +-
tests/unit_tests/datasets/schema_tests.py | 15 +-
tests/unit_tests/datasource/dao_tests.py | 32 ++--
tests/unit_tests/db_engine_specs/test_athena.py | 18 +-
tests/unit_tests/db_engine_specs/test_aurora.py | 42 +++--
tests/unit_tests/db_engine_specs/test_aws_iam.py | 111 ++++--------
tests/unit_tests/db_engine_specs/test_base.py | 33 ++--
tests/unit_tests/db_engine_specs/test_bigquery.py | 34 ++--
.../unit_tests/db_engine_specs/test_clickhouse.py | 16 +-
tests/unit_tests/db_engine_specs/test_couchbase.py | 8 +-
tests/unit_tests/db_engine_specs/test_crate.py | 14 +-
tests/unit_tests/db_engine_specs/test_crdb.py | 2 +-
tests/unit_tests/db_engine_specs/test_databend.py | 14 +-
.../unit_tests/db_engine_specs/test_databricks.py | 18 +-
tests/unit_tests/db_engine_specs/test_datastore.py | 26 ++-
tests/unit_tests/db_engine_specs/test_db2.py | 12 +-
tests/unit_tests/db_engine_specs/test_denodo.py | 2 +-
tests/unit_tests/db_engine_specs/test_doris.py | 18 +-
tests/unit_tests/db_engine_specs/test_dremio.py | 6 +-
tests/unit_tests/db_engine_specs/test_drill.py | 28 ++--
tests/unit_tests/db_engine_specs/test_druid.py | 22 +--
tests/unit_tests/db_engine_specs/test_duckdb.py | 17 +-
tests/unit_tests/db_engine_specs/test_dynamodb.py | 2 +-
.../db_engine_specs/test_elasticsearch.py | 8 +-
tests/unit_tests/db_engine_specs/test_firebird.py | 6 +-
tests/unit_tests/db_engine_specs/test_firebolt.py | 4 +-
tests/unit_tests/db_engine_specs/test_gsheets.py | 64 +++----
tests/unit_tests/db_engine_specs/test_hana.py | 4 +-
tests/unit_tests/db_engine_specs/test_hive.py | 22 ++-
tests/unit_tests/db_engine_specs/test_init.py | 4 +-
tests/unit_tests/db_engine_specs/test_kusto.py | 12 +-
tests/unit_tests/db_engine_specs/test_kylin.py | 4 +-
tests/unit_tests/db_engine_specs/test_mongodb.py | 8 +-
tests/unit_tests/db_engine_specs/test_mssql.py | 30 ++--
tests/unit_tests/db_engine_specs/test_mysql.py | 32 ++--
tests/unit_tests/db_engine_specs/test_mysql_iam.py | 22 +--
tests/unit_tests/db_engine_specs/test_oceanbase.py | 2 +-
tests/unit_tests/db_engine_specs/test_ocient.py | 6 +-
tests/unit_tests/db_engine_specs/test_oracle.py | 18 +-
tests/unit_tests/db_engine_specs/test_parseable.py | 12 +-
tests/unit_tests/db_engine_specs/test_pinot.py | 12 +-
tests/unit_tests/db_engine_specs/test_postgres.py | 2 +-
tests/unit_tests/db_engine_specs/test_presto.py | 36 ++--
tests/unit_tests/db_engine_specs/test_redshift.py | 2 +-
.../db_engine_specs/test_redshift_iam.py | 32 ++--
.../unit_tests/db_engine_specs/test_singlestore.py | 2 +-
tests/unit_tests/db_engine_specs/test_snowflake.py | 46 ++---
tests/unit_tests/db_engine_specs/test_sqlite.py | 6 +-
tests/unit_tests/db_engine_specs/test_starrocks.py | 16 +-
tests/unit_tests/db_engine_specs/test_tdengine.py | 2 +-
tests/unit_tests/db_engine_specs/test_trino.py | 142 ++++++++--------
tests/unit_tests/db_engine_specs/test_ydb.py | 10 +-
.../distributed_lock/distributed_lock_tests.py | 10 +-
tests/unit_tests/examples/data_loading_test.py | 30 +---
tests/unit_tests/examples/generic_loader_test.py | 12 +-
tests/unit_tests/examples/utils_test.py | 8 +-
tests/unit_tests/explore/utils_test.py | 82 ++++-----
tests/unit_tests/extension_tests.py | 2 +-
tests/unit_tests/extensions/test_sqlalchemy.py | 16 +-
tests/unit_tests/importexport/api_test.py | 4 +-
tests/unit_tests/jinja_context_test.py | 38 ++---
.../key_value/test_shared_entries_migration.py | 20 +--
tests/unit_tests/key_value/utils_test.py | 32 ++--
.../mcp_service/chart/test_chart_schemas.py | 12 +-
.../mcp_service/chart/test_chart_utils.py | 16 +-
tests/unit_tests/mcp_service/chart/test_compile.py | 16 +-
.../mcp_service/chart/tool/test_generate_chart.py | 20 +--
.../mcp_service/chart/tool/test_get_chart_data.py | 38 ++---
.../chart/tool/test_get_chart_preview.py | 46 +++--
.../mcp_service/chart/tool/test_get_chart_sql.py | 22 ++-
.../mcp_service/chart/tool/test_list_charts.py | 4 +-
.../mcp_service/chart/tool/test_update_chart.py | 14 +-
.../chart/tool/test_update_chart_preview.py | 6 +-
.../dashboard/test_dashboard_schemas.py | 8 +-
.../tool/test_add_chart_to_existing_dashboard.py | 8 +-
.../dashboard/tool/test_dashboard_generation.py | 2 +-
.../dashboard/tool/test_dashboard_tools.py | 6 +-
.../database/tool/test_database_tools.py | 2 +-
.../mcp_service/dataset/tool/test_dataset_tools.py | 68 +++-----
.../mcp_service/dataset/tool/test_query_dataset.py | 10 +-
.../explore/tool/test_generate_explore_link.py | 20 +--
.../mcp_service/sql_lab/tool/test_execute_sql.py | 38 ++---
.../sql_lab/tool/test_save_sql_query.py | 6 +-
.../system/tool/test_generate_bug_report.py | 18 +-
.../system/tool/test_get_current_user.py | 14 +-
.../mcp_service/system/tool/test_get_schema.py | 4 +-
tests/unit_tests/mcp_service/test_auth_api_key.py | 2 +-
.../mcp_service/test_auth_user_resolution.py | 6 +-
tests/unit_tests/mcp_service/test_jwt_verifier.py | 4 +-
tests/unit_tests/mcp_service/test_mcp_caching.py | 10 +-
tests/unit_tests/mcp_service/test_mcp_config.py | 4 +-
tests/unit_tests/mcp_service/test_mcp_server.py | 18 +-
tests/unit_tests/mcp_service/test_mcp_storage.py | 30 +---
.../mcp_service/test_mcp_tool_registration.py | 10 +-
tests/unit_tests/mcp_service/test_middleware.py | 42 ++---
.../mcp_service/test_middleware_logging.py | 4 +-
.../mcp_service/test_tool_search_transform.py | 2 +-
.../mcp_service/utils/test_schema_utils.py | 4 +-
.../unit_tests/migrations/shared/catalogs_test.py | 52 ++----
tests/unit_tests/migrations/viz/utils.py | 2 +-
tests/unit_tests/models/core_test.py | 36 ++--
tests/unit_tests/models/helpers_test.py | 186 ++++++++++-----------
.../models/sql_types/currency_type_test.py | 2 +-
.../models/test_virtual_dataset_format.py | 6 +-
tests/unit_tests/queries/dao_test.py | 6 +-
tests/unit_tests/reports/dao_test.py | 8 +-
tests/unit_tests/reports/filters_test.py | 8 +-
.../reports/notifications/email_tests.py | 18 +-
.../reports/notifications/slack_tests.py | 79 +++------
.../reports/notifications/webhook_tests.py | 42 ++---
tests/unit_tests/result_set_test.py | 4 +-
tests/unit_tests/security/guest_rls_test.py | 4 +-
tests/unit_tests/security/manager_test.py | 6 +-
.../security/test_granular_export_permissions.py | 8 +-
tests/unit_tests/semantic_layers/api_test.py | 52 +++---
tests/unit_tests/semantic_layers/dao_test.py | 9 +-
.../unit_tests/semantic_layers/decorators_test.py | 16 +-
tests/unit_tests/semantic_layers/models_test.py | 50 +++---
tests/unit_tests/sql/dialects/opensearch_tests.py | 2 +-
tests/unit_tests/sql/dialects/pinot_tests.py | 8 +-
tests/unit_tests/sql/execution/conftest.py | 4 +-
tests/unit_tests/sql/execution/test_celery_task.py | 130 ++++++--------
tests/unit_tests/sql/execution/test_executor.py | 120 +++++++------
tests/unit_tests/sql/parse_tests.py | 10 +-
tests/unit_tests/sql/transpile_to_dialect_test.py | 12 +-
tests/unit_tests/sql_lab_test.py | 2 +-
tests/unit_tests/sql_validators/sqlite_test.py | 2 +-
tests/unit_tests/tags/commands/create_test.py | 34 ++--
tests/unit_tests/tags/commands/update_test.py | 64 ++++---
tests/unit_tests/tasks/test_async_queries.py | 22 +--
tests/unit_tests/tasks/test_handlers.py | 22 +--
tests/unit_tests/tasks/test_manager.py | 8 +-
tests/unit_tests/tasks/test_timeout.py | 12 +-
tests/unit_tests/tasks/test_utils.py | 10 +-
tests/unit_tests/themes/api_test.py | 5 +-
tests/unit_tests/themes/model_test.py | 7 +-
tests/unit_tests/thumbnails/test_digest.py | 30 ++--
tests/unit_tests/utils/cache_test.py | 2 +-
tests/unit_tests/utils/date_parser_tests.py | 2 +-
tests/unit_tests/utils/filters_test.py | 4 +-
tests/unit_tests/utils/oauth2_tests.py | 14 +-
tests/unit_tests/utils/screenshot_test.py | 8 +-
tests/unit_tests/utils/slack_test.py | 4 +-
tests/unit_tests/utils/test_core.py | 2 +-
tests/unit_tests/utils/test_hashing.py | 2 +-
.../utils/test_jinja_template_validator.py | 4 +-
.../utils/test_playwright_migration_working.py | 7 +-
.../utils/test_screenshot_exception_handling.py | 6 +-
tests/unit_tests/utils/test_screenshot_utils.py | 8 +-
tests/unit_tests/utils/webdriver_test.py | 12 +-
tests/unit_tests/views/datasource/utils_test.py | 6 +-
tests/unit_tests/views/datasource/views_test.py | 14 +-
tests/unit_tests/views/test_base.py | 4 +-
tests/unit_tests/views/test_base_theme_helpers.py | 20 +--
tests/unit_tests/views/test_bootstrap_auth.py | 10 +-
tests/unit_tests/views/test_sqla.py | 4 +-
354 files changed, 2450 insertions(+), 3333 deletions(-)