From b10b145f891db1106231d61874188dd778868ff2 Mon Sep 17 00:00:00 2001 From: Ben Cassell Date: Fri, 6 Dec 2024 12:16:22 -0800 Subject: [PATCH] fix linting --- dbt/adapters/databricks/credentials.py | 10 +++------- dbt/adapters/databricks/relation.py | 2 +- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/dbt/adapters/databricks/credentials.py b/dbt/adapters/databricks/credentials.py index 688f0e12..7a318cad 100644 --- a/dbt/adapters/databricks/credentials.py +++ b/dbt/adapters/databricks/credentials.py @@ -136,9 +136,7 @@ def __post_init__(self) -> None: def validate_creds(self) -> None: for key in ["host", "http_path"]: if not getattr(self, key): - raise DbtConfigError( - f"The config '{key}' is required to connect to Databricks" - ) + raise DbtConfigError(f"The config '{key}' is required to connect to Databricks") if not self.token and self.auth_type != "oauth": raise DbtConfigError( "The config `auth_type: oauth` is required when not using access token" @@ -146,10 +144,8 @@ def validate_creds(self) -> None: if not self.client_id and self.client_secret: raise DbtConfigError( - - "The config 'client_id' is required to connect " - "to Databricks when 'client_secret' is present" - + "The config 'client_id' is required to connect " + "to Databricks when 'client_secret' is present" ) @classmethod diff --git a/dbt/adapters/databricks/relation.py b/dbt/adapters/databricks/relation.py index 4df8338e..e7c78e22 100644 --- a/dbt/adapters/databricks/relation.py +++ b/dbt/adapters/databricks/relation.py @@ -1,6 +1,6 @@ from collections.abc import Iterable from dataclasses import dataclass, field -from typing import Any, Optional, Type +from typing import Any, Optional, Type # noqa from dbt_common.dataclass_schema import StrEnum from dbt_common.exceptions import DbtRuntimeError