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 Aug 15, 2023
1 parent 5e7d89c commit 8471147
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion dbt_sugar/core/clients/dbt.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,6 @@ def read_profile(self):
_profile_dict = open_yaml(self.profiles_dir / "profiles.yml")
_profile_dict = _profile_dict.get(self._profile_name, _profile_dict.get(self._profile_name))
if _profile_dict:

# read target name from args or try to get it from the dbt_profile `target:` field.
_target_profile = self._get_target_profile(profile_dict=_profile_dict)

Expand Down
1 change: 0 additions & 1 deletion dbt_sugar/core/connectors/snowflake_connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ def __init__(
def get_columns_from_table(
self, target_table: str, target_schema: str, use_describe: bool = False
) -> Sequence[str]:

# if user wants to use describe (more preformant but with caveat) method
# we re-implement column describe since snowflake.sqlalchemy is shit.
if use_describe:
Expand Down
1 change: 0 additions & 1 deletion dbt_sugar/core/ui/cli_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,6 @@ def _document_undocumented_cols(
self,
question_payload: Sequence[Mapping[str, Any]],
) -> Mapping[str, Mapping[str, Union[str, List[str]]]]:

columns_to_document = question_payload[0].get("choices", list())
quantifier_word = self._set_quantifier_word()
# check if user wants to document all columns
Expand Down
1 change: 0 additions & 1 deletion tests/cli_ui_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ def unsafe_ask(self):
],
)
def test__document_model(mocker, question_payload, questionary_outputs, expected_results):

mocker.patch("questionary.prompt", return_value=questionary_outputs)
results = UserInputCollector(question_type="model", question_payload=question_payload).collect()
if questionary_outputs.get("wants_to_document_model") is False:
Expand Down

0 comments on commit 8471147

Please sign in to comment.