Skip to content

Commit dfc8b95

Browse files
chore: pre-commit autoupdate (#240)
<!--pre-commit.ci start--> updates: - [github.com/astral-sh/ruff-pre-commit: v0.5.6 → v0.6.1](astral-sh/ruff-pre-commit@v0.5.6...v0.6.1) <!--pre-commit.ci end--> --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Edgar Ramírez Mondragón <[email protected]>
1 parent c66ce2b commit dfc8b95

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

Diff for: .pre-commit-config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ repos:
2020
- id: check-github-workflows
2121

2222
- repo: https://github.com/astral-sh/ruff-pre-commit
23-
rev: v0.5.6
23+
rev: v0.6.1
2424
hooks:
2525
- id: ruff
2626
args: [--fix, --exit-non-zero-on-fix]

Diff for: target_snowflake/connector.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ def _get_merge_from_stage_statement( # noqa: ANN202
406406
dedup = f"QUALIFY ROW_NUMBER() OVER (PARTITION BY {dedup_cols} ORDER BY SEQ8() DESC) = 1"
407407
return (
408408
text(
409-
f"merge into {full_table_name} d using " # noqa: ISC003
409+
f"merge into {full_table_name} d using " # noqa: ISC003, S608
410410
+ f"(select {json_casting_selects} from '@~/target-snowflake/{sync_id}'" # noqa: S608
411411
+ f"(file_format => {file_format}) {dedup}) s "
412412
+ f"on {join_expr} "
@@ -431,7 +431,7 @@ def _get_copy_statement(self, full_table_name, schema, sync_id, file_format): #
431431
)
432432
return (
433433
text(
434-
f"copy into {full_table_name} {col_alias_selects} from " # noqa: ISC003
434+
f"copy into {full_table_name} {col_alias_selects} from " # noqa: ISC003, S608
435435
+ f"(select {json_casting_selects} from " # noqa: S608
436436
+ f"'@~/target-snowflake/{sync_id}')"
437437
+ f"file_format = (format_name='{file_format}')",

Diff for: tests/test_target_snowflake.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,14 @@
2929
class BaseSnowflakeTargetTests:
3030
"""Base class for Snowflake target tests."""
3131

32-
@pytest.fixture()
32+
@pytest.fixture
3333
def connection(self, runner):
3434
return runner.singer_class.default_sink_class.connector_class(
3535
runner.config,
3636
).connection
3737

38-
@pytest.fixture()
39-
def resource(self, runner, connection): # noqa: PT004
38+
@pytest.fixture
39+
def resource(self, runner, connection):
4040
"""Generic external resource.
4141
4242
This fixture is useful for setup and teardown of external resources,

0 commit comments

Comments
 (0)