Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Apr 8, 2024
1 parent e8cf85c commit e651634
Show file tree
Hide file tree
Showing 13 changed files with 15 additions and 4 deletions.
1 change: 1 addition & 0 deletions dbt_sugar/core/clients/dbt.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Holds methods to interact with dbt API (we mostly don't for now because not stable) and objects."""

import os
from pathlib import Path
from typing import Any, Dict, Optional, Union
Expand Down
1 change: 1 addition & 0 deletions dbt_sugar/core/connectors/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
Only use this class implemented by a child connector.
"""

from abc import ABC
from typing import Dict, Sequence

Expand Down
1 change: 1 addition & 0 deletions dbt_sugar/core/connectors/clickhouse_connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
Module dependent of the base connector.
"""

from typing import Dict

import sqlalchemy
Expand Down
1 change: 1 addition & 0 deletions dbt_sugar/core/connectors/postgres_connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
Module dependent of the base connector.
"""

from typing import Dict

import sqlalchemy
Expand Down
1 change: 1 addition & 0 deletions dbt_sugar/core/connectors/redshift_connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
Extends BaseConnector.
"""

from typing import Dict

import sqlalchemy
Expand Down
1 change: 1 addition & 0 deletions dbt_sugar/core/connectors/snowflake_connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
Module dependent of the base connector.
"""

from typing import Dict, Sequence

import sqlalchemy
Expand Down
1 change: 1 addition & 0 deletions dbt_sugar/core/flags.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Flags module containing the FlagParser "Factory"."""

import sys
from argparse import ArgumentParser
from pathlib import Path
Expand Down
1 change: 1 addition & 0 deletions dbt_sugar/core/main.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Main module for dbt-sugar. Sets up CLI arguments and sets up task handlers."""

import argparse
import sys
from typing import List
Expand Down
1 change: 1 addition & 0 deletions dbt_sugar/core/task/audit.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Audit Task module."""

from pathlib import Path
from typing import Any, Dict, List

Expand Down
1 change: 1 addition & 0 deletions dbt_sugar/core/task/base.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""API definition for Task-like objects."""

import abc
import os
import re
Expand Down
1 change: 0 additions & 1 deletion dbt_sugar/core/task/bootstrap.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
"""Bootstrap module. Generates placeholders for all models in a dbt project."""


import functools
import operator
import os
Expand Down
7 changes: 4 additions & 3 deletions dbt_sugar/core/task/doc.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Document Task module."""

import copy
import re
import subprocess
Expand Down Expand Up @@ -219,9 +220,9 @@ def add_primary_key_tests(
self.column_update_payload[primary_key_column] = {"tests": PRIMARY_KEYS_TESTS}
else:
tests = self.column_update_payload[primary_key_column].get("tests", [])
self.column_update_payload[primary_key_column][
"tests"
] = self.combine_two_list_without_duplicates(PRIMARY_KEYS_TESTS, tests)
self.column_update_payload[primary_key_column]["tests"] = (
self.combine_two_list_without_duplicates(PRIMARY_KEYS_TESTS, tests)
)

def orchestrate_model_documentation(
self, schema: str, model_name: str, columns_sql: List[str]
Expand Down
1 change: 1 addition & 0 deletions dbt_sugar/core/ui/traceback_manager.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Holds handlers to manage error tracebacks using."""

import pretty_errors

from dbt_sugar.core.flags import FlagParser
Expand Down

0 comments on commit e651634

Please sign in to comment.