Skip to content

Commit c7c3f14

Browse files
committed
feat(v2.2.4): run ruff
1 parent 9415da9 commit c7c3f14

2 files changed

Lines changed: 7 additions & 5 deletions

File tree

src/excelalchemy/codecs/date.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,9 @@ def format_display_value(
8383
case datetime():
8484
return value.strftime(presentation.python_date_format)
8585
case int() | float():
86-
return datetime.fromtimestamp(int(value) / MILLISECOND_TO_SECOND).strftime(presentation.python_date_format)
86+
return datetime.fromtimestamp(int(value) / MILLISECOND_TO_SECOND).strftime(
87+
presentation.python_date_format
88+
)
8789
case _:
8890
return str(value) if value is not None else ''
8991

src/excelalchemy/metadata.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,7 @@ class RuntimeFieldBinding:
104104
def make_unique_label(self, *, label: Label) -> UniqueLabel:
105105
if self.parent_label is None:
106106
raise RuntimeError(msg(MessageKey.PARENT_LABEL_EMPTY_RUNTIME))
107-
unique_label = (
108-
f'{self.parent_label}{UNIQUE_HEADER_CONNECTOR}{label}' if self.parent_label != label else label
109-
)
107+
unique_label = f'{self.parent_label}{UNIQUE_HEADER_CONNECTOR}{label}' if self.parent_label != label else label
110108
return UniqueLabel(unique_label)
111109

112110
def make_unique_key(self, *, key: Key | None) -> UniqueKey:
@@ -158,7 +156,9 @@ def comment_hint(self) -> str:
158156
def comment_options(self) -> str:
159157
if self.options is None:
160158
return ''
161-
return dmsg(MessageKey.COMMENT_OPTIONS, value=MULTI_CHECKBOX_SEPARATOR.join(option.name for option in self.options))
159+
return dmsg(
160+
MessageKey.COMMENT_OPTIONS, value=MULTI_CHECKBOX_SEPARATOR.join(option.name for option in self.options)
161+
)
162162

163163
@property
164164
def comment_fraction_digits(self) -> str:

0 commit comments

Comments
 (0)