Skip to content

Commit

Permalink
Added a typos checker.
Browse files Browse the repository at this point in the history
  • Loading branch information
elongl committed Aug 20, 2023
1 parent 5b46050 commit bb11d19
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 13 deletions.
5 changes: 5 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ repos:
hooks:
- id: prettier

- repo: https://github.com/crate-ci/typos
rev: v1.16.6
hooks:
- id: typos

- repo: local
hooks:
- id: no_commit
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{# Loging the wanted config var as an elementary log (using elementary.edr_log) #}
{# Logging the wanted config var as an elementary log (using elementary.edr_log) #}
{# The dbtRunner catch this log when executed with run_operation #}
{# This is used for accessing the integration tests vars #}
{% macro return_config_var(var_name) %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
select edr_bucket_start, edr_bucket_end, dimension_value
from training_set_dimensions left join buckets
on (buckets.joiner = training_set_dimensions.joiner
{# This makes sure we don't create empty buckets for dimensions before their first apperance #}
{# This makes sure we don't create empty buckets for dimensions before their first appearance #}
and edr_bucket_end >= dimension_min_bucket_end)
where dimension_value is not null
),
Expand Down Expand Up @@ -141,7 +141,7 @@

{% else %}

{# Get all of the dimension anomally metrics that were created for the test until this run #}
{# Get all of the dimension anomaly metrics that were created for the test until this run #}
all_dimension_metrics as (
select
bucket_end,
Expand Down
2 changes: 1 addition & 1 deletion macros/edr/system/system_utils/get_config_var.sql
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

{%- macro default__get_default_config() -%}
{# We use this macro to define and call vars, as the global vars defined in dbt_project.yml
of the package are not accesible at on-run-start and on-run-end #}
of the package are not accessible at on-run-start and on-run-end #}
{% set default_config = {
'days_back': 14,
'anomaly_sensitivity': 3,
Expand Down
16 changes: 8 additions & 8 deletions macros/utils/cross_db_utils/generate_elementary_profile_args.sql
Original file line number Diff line number Diff line change
Expand Up @@ -37,22 +37,22 @@
{% endmacro %}

{% macro bigquery__generate_elementary_profile_args(method, elementary_database, elementary_schema) %}
{% set paremeters = [
{% set parameters = [
_parameter("type", target.type),
_parameter("project", elementary_database),
_parameter("dataset", elementary_schema)
] %}
{% if method == 'service-account' %}
{% do paremeters.append(_parameter("method", "service-account")) %}
{% do paremeters.append(_parameter("keyfile", "<KEYFILE>")) %}
{% do parameters.append(_parameter("method", "service-account")) %}
{% do parameters.append(_parameter("keyfile", "<KEYFILE>")) %}
{% elif method == "github-actions" %}
{% do paremeters.append(_parameter("method", "service-account")) %}
{% do paremeters.append(_parameter("keyfile", "/tmp/bigquery_keyfile.json", "Do not change this, supply `bigquery-keyfile` in `.github/workflows/elementary.yml`")) %}
{% do parameters.append(_parameter("method", "service-account")) %}
{% do parameters.append(_parameter("keyfile", "/tmp/bigquery_keyfile.json", "Do not change this, supply `bigquery-keyfile` in `.github/workflows/elementary.yml`")) %}
{% else %}
{% do paremeters.append(_parameter("method", "<AUTH_METHOD>", "Configure your auth method and add the required fields according to https://docs.getdbt.com/reference/warehouse-setups/bigquery-setup#authentication-methods")) %}
{% do parameters.append(_parameter("method", "<AUTH_METHOD>", "Configure your auth method and add the required fields according to https://docs.getdbt.com/reference/warehouse-setups/bigquery-setup#authentication-methods")) %}
{% endif %}
{% do paremeters.append(_parameter("threads", target.threads)) %}
{% do return(paremeters) %}
{% do parameters.append(_parameter("threads", target.threads)) %}
{% do return(parameters) %}
{% endmacro %}

{% macro postgres__generate_elementary_profile_args(method, elementary_database, elementary_schema) %}
Expand Down
2 changes: 1 addition & 1 deletion models/dbt_artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ models:

- name: dbt_metrics
description: >
Metadata about metics in the project, including configuration and properties from the dbt graph. Each row contains information about a single metric.
Metadata about metrics in the project, including configuration and properties from the dbt graph. Each row contains information about a single metric.
Data is loaded every time this model is executed. It is recommended to execute the model every time a change is merged to the project.
columns:
- name: unique_id
Expand Down

0 comments on commit bb11d19

Please sign in to comment.