Skip to content

Commit

Permalink
chore: Enable SIM Ruff rule (#442)
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarrmondragon authored Sep 23, 2024
1 parent f27557e commit ab7a5e8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ select = [
"UP", # pyupgrade
"ICN", # flake8-import-conventions
"RET", # flake8-return
"SIM", # flake8-simplify
"RUF", # ruff
]

Expand Down
2 changes: 1 addition & 1 deletion target_postgres/sinks.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ def upsert(
# Update
where_condition = join_condition
update_columns = {}
for column_name in self.schema["properties"].keys():
for column_name in self.schema["properties"]:
from_table_column: sa.Column = from_table.columns[column_name]
to_table_column: sa.Column = to_table.columns[column_name]
update_columns[to_table_column] = from_table_column
Expand Down

0 comments on commit ab7a5e8

Please sign in to comment.