Skip to content

Commit 698e74b

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent e43d973 commit 698e74b

3 files changed

Lines changed: 2 additions & 9 deletions

File tree

dbt/adapters/sqlserver/sqlserver_adapter.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
from dbt.adapters.sqlserver.sqlserver_connections import SQLServerConnectionManager
1414
from dbt.adapters.sqlserver.sqlserver_relation import SQLServerRelation
1515

16-
1716
COLUMNS_EQUAL_SQL = """
1817
with diff_count as (
1918
SELECT
@@ -160,10 +159,7 @@ def render_model_constraint(cls, constraint) -> Optional[str]:
160159
if constraint.type == ConstraintType.unique:
161160
return constraint_prefix + f"{constraint.name} unique nonclustered({column_list})"
162161
elif constraint.type == ConstraintType.primary_key:
163-
return (
164-
constraint_prefix
165-
+ f"{constraint.name} primary key nonclustered({column_list})"
166-
)
162+
return constraint_prefix + f"{constraint.name} primary key nonclustered({column_list})"
167163
elif constraint.type == ConstraintType.foreign_key and constraint.expression:
168164
return (
169165
constraint_prefix

dbt/adapters/sqlserver/sqlserver_connections.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
from dbt.adapters.sql import SQLConnectionManager
1010
from dbt_common.clients.agate_helper import empty_table
1111

12-
from dbt.adapters.sqlserver import __version__
1312
from dbt.adapters.sqlserver.sqlserver_credentials import SQLServerCredentials
1413

1514
logger = AdapterLogger("sqlserver")

dbt/adapters/sqlserver/sqlserver_credentials.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,7 @@ def build_adbc_uri(self) -> str:
6767
if self.encrypt is not None:
6868
params.append(f"encrypt={'true' if self.encrypt else 'false'}")
6969
if self.trust_cert is not None:
70-
params.append(
71-
f"TrustServerCertificate={'true' if self.trust_cert else 'false'}"
72-
)
70+
params.append(f"TrustServerCertificate={'true' if self.trust_cert else 'false'}")
7371
if self.login_timeout:
7472
params.append(f"connection timeout={self.login_timeout}")
7573

0 commit comments

Comments
 (0)