From ad2cb6f385bdc44156d3c28c0fdf055d7d557bb2 Mon Sep 17 00:00:00 2001 From: Dan Snow Date: Mon, 2 Dec 2024 12:56:38 -0600 Subject: [PATCH 1/2] Bump assesspy in ratio_stats --- .github/scripts/deploy_dbt_model_dependencies.sh | 8 ++++---- dbt/models/reporting/reporting.ratio_stats.py | 2 +- dbt/models/reporting/schema.yml | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/scripts/deploy_dbt_model_dependencies.sh b/.github/scripts/deploy_dbt_model_dependencies.sh index 58337d07d..3c705496c 100755 --- a/.github/scripts/deploy_dbt_model_dependencies.sh +++ b/.github/scripts/deploy_dbt_model_dependencies.sh @@ -15,10 +15,10 @@ # Zip archives uploaded using this script can be used to import packages # into a Python model script with a set of import calls like so: # -# sc.addPyFile(f"{s3_dependency_dir}/attrs==23.2.0.zip") # noqa: F821 -# sc.addPyFile(f"{s3_dependency_dir}/assesspy==1.2.0.zip") # noqa: F821 -# import attrs # noqa: E402 -# import assesspy # noqa: E402 +# sc.addPyFile(f"{s3_dependency_dir}/attrs==23.2.0.zip") +# sc.addPyFile(f"{s3_dependency_dir}/assesspy==2.0.1.zip") +# import attrs +# import assesspy # # Dependencies are installed using the `--no-deps` flag for `pip install`, # meaning that your dependency's dependencies will not be installed or diff --git a/dbt/models/reporting/reporting.ratio_stats.py b/dbt/models/reporting/reporting.ratio_stats.py index d9799e3eb..b5c99ea21 100644 --- a/dbt/models/reporting/reporting.ratio_stats.py +++ b/dbt/models/reporting/reporting.ratio_stats.py @@ -1,6 +1,6 @@ # pylint: skip-file # type: ignore -sc.addPyFile("s3://ccao-athena-dependencies-us-east-1/assesspy==2.0.0.zip") +sc.addPyFile("s3://ccao-athena-dependencies-us-east-1/assesspy==2.0.1.zip") from typing import Union diff --git a/dbt/models/reporting/schema.yml b/dbt/models/reporting/schema.yml index a8af0fc21..121e0ca8f 100644 --- a/dbt/models/reporting/schema.yml +++ b/dbt/models/reporting/schema.yml @@ -30,7 +30,7 @@ models: tags: - daily packages: - - "assesspy==2.0.0" + - "assesspy==2.0.1" data_tests: - expression_is_true: name: reporting_ratio_stats_metrics_are_sensible From 802b99a293ea45b165cb70978cb8e667fe27532f Mon Sep 17 00:00:00 2001 From: Dan Snow Date: Mon, 2 Dec 2024 19:04:52 -0600 Subject: [PATCH 2/2] Add .editorconfig for sh files --- .editorconfig | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 000000000..8e389a93d --- /dev/null +++ b/.editorconfig @@ -0,0 +1,6 @@ +[*.sh] +indent_style = space +indent_size = 4 +binary_next_line = true +switch_case_indent = true +space_redirects = true