Skip to content

Commit c9f67d4

Browse files
committed
lint fixes
1 parent 8fc90ea commit c9f67d4

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

stackql_deploy/cmd/build.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,9 @@ def run(self, dry_run, show_queries, on_failure):
193193
if resource_exists and not is_correct_state:
194194
# bypass state check if skip_validation is set to true
195195
if resource.get('skip_validation', False):
196-
self.logger.info(f"skipping validation for [{resource['name']}] as skip_validation is set to true.")
196+
self.logger.info(
197+
f"skipping validation for [{resource['name']}] as skip_validation is set to true."
198+
)
197199
is_correct_state = True
198200
elif statecheck_query:
199201
is_correct_state = self.check_if_resource_is_correct_state(

stackql_deploy/lib/filters.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,19 +113,17 @@ def sql_escape(value):
113113
"""
114114
Escapes a string for use as a SQL string literal by doubling any single quotes.
115115
This is useful for nested SQL statements where single quotes need to be escaped.
116-
117116
Args:
118117
value: The string to escape
119-
120118
Returns:
121119
The escaped string with single quotes doubled
122120
"""
123121
if value is None:
124122
return None
125-
123+
126124
if not isinstance(value, str):
127125
value = str(value)
128-
126+
129127
return value.replace("'", "''")
130128

131129
#

0 commit comments

Comments
 (0)