Skip to content

Commit

Permalink
chore: Fix G002
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed Sep 16, 2024
1 parent 40eb901 commit bfe9d1f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion spoonbill/spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def add_column(self, path, item_type, title, *, propagated=False, additional=Fal
# e.g. /tender/items/166/relatedLot
combined_path = abs_path
col = replace(col, path=combined_path)
LOGGER.debug(_("Detected additional column: %s in %s table") % (path, self.name)) # noqa: G002 # false positive
LOGGER.debug(_("Detected additional column: %s in %s table"), path, self.name)
self.additional_columns[combined_path] = col

if not propagated:
Expand Down
6 changes: 3 additions & 3 deletions spoonbill/stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ def _add_table(self, table, pointer): # noqa: ARG002
self.get_table.cache_clear()

def add_additional_table(self, pointer, abs_pointer, parent_key, key, item):
LOGGER.debug(_("Detected additional table: %s") % pointer) # noqa: G002 # false positive
LOGGER.debug(_("Detected additional table: %s"), pointer)
self.current_table.types[pointer] = ["array"]
self._add_table(add_child_table(self.current_table, pointer, parent_key, key), pointer)
# add columns beforehand because it might be required
Expand Down Expand Up @@ -248,7 +248,7 @@ def is_type_matched(self, pointer, item, item_type):
return True

def add_joinable_column(self, abs_pointer, pointer):
LOGGER.debug(_("Detected additional column: %s in %s table") % (abs_pointer, self.current_table.name)) # noqa: G002 # false positive
LOGGER.debug(_("Detected additional column: %s in %s table"), abs_pointer, self.current_table.name)
self.current_table.types[pointer] = JOINABLE
self.current_table.add_column(
pointer, JOINABLE, pointer, additional=True, abs_path=abs_pointer, header=pointer
Expand Down Expand Up @@ -345,7 +345,7 @@ def process_items(self, releases, *, with_preview=True): # noqa: ARG002
else:
parent_table = self.current_table.parent
if pointer not in parent_table.arrays:
LOGGER.debug(_("Detected additional table: %s") % pointer) # noqa: G002 # false positive
LOGGER.debug(_("Detected additional table: %s"), pointer)
self.current_table.types[pointer] = ["array"]
parent_table = self.current_table
self.add_additional_table(pointer, abs_pointer, parent_key, key, item)
Expand Down

0 comments on commit bfe9d1f

Please sign in to comment.