Skip to content

Commit 1645588

Browse files
authored
Merge pull request #353 from dbt-msft/bump-pre-commit
bump pre-commit
2 parents fb4da28 + fd459e7 commit 1645588

File tree

4 files changed

+2
-6
lines changed

4 files changed

+2
-6
lines changed

dbt/adapters/sqlserver/sql_server_adapter.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ def get_rows_different_sql(
7676
column_names: Optional[List[str]] = None,
7777
except_operator: str = "EXCEPT",
7878
) -> str:
79-
8079
"""
8180
note: using is not supported on Synapse so COLUMNS_EQUAL_SQL is adjsuted
8281
Generate SQL for a query that returns a single row with a two

dbt/adapters/sqlserver/sql_server_connection_manager.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,6 @@ def exception_handler(self, sql):
266266

267267
@classmethod
268268
def open(cls, connection: Connection) -> Connection:
269-
270269
if connection.state == ConnectionState.OPEN:
271270
logger.debug("Connection is already open, skipping open.")
272271
return connection
@@ -276,7 +275,6 @@ def open(cls, connection: Connection) -> Connection:
276275
con_str = [f"DRIVER={{{credentials.driver}}}"]
277276

278277
if "\\" in credentials.host:
279-
280278
# If there is a backslash \ in the host name, the host is a
281279
# SQL Server named instance. In this case then port number has to be omitted.
282280
con_str.append(f"SERVER={credentials.host}")
@@ -374,7 +372,6 @@ def add_query(
374372
bindings: Optional[Any] = None,
375373
abridge_sql_log: bool = False,
376374
) -> Tuple[Connection, Any]:
377-
378375
connection = self.get_thread_connection()
379376

380377
if auto_begin and connection.transaction_open is False:

dbt/include/sqlserver/macros/utils/timestamps.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
{% macro sqlserver__snapshot_string_as_time(timestamp) -%}
66
{%- set result = "CONVERT(DATETIME2, '" ~ timestamp ~ "')" -%}
77
{{ return(result) }}
8-
{%- endmacro %}
8+
{%- endmacro %}

dev_requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
pytest==7.1.3
22
twine==4.0.2
33
wheel==0.40.0
4-
pre-commit==3.2.0
4+
pre-commit==3.3.1
55
pytest-dotenv==0.5.2
66
dbt-tests-adapter~=1.4.5
77
-e .

0 commit comments

Comments
 (0)