Skip to content

Commit ab7a5e8

Browse files
chore: Enable SIM Ruff rule (#442)
1 parent f27557e commit ab7a5e8

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ select = [
9595
"UP", # pyupgrade
9696
"ICN", # flake8-import-conventions
9797
"RET", # flake8-return
98+
"SIM", # flake8-simplify
9899
"RUF", # ruff
99100
]
100101

target_postgres/sinks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ def upsert(
237237
# Update
238238
where_condition = join_condition
239239
update_columns = {}
240-
for column_name in self.schema["properties"].keys():
240+
for column_name in self.schema["properties"]:
241241
from_table_column: sa.Column = from_table.columns[column_name]
242242
to_table_column: sa.Column = to_table.columns[column_name]
243243
update_columns[to_table_column] = from_table_column

0 commit comments

Comments
 (0)