Skip to content

chore(migration): use f-string #51

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 18, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions reportsizedeltas/reportsizedeltas.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ def add_summary_report_row(self, report_data, fqbn_data):
row_number = len(report_data)
# Add a row to the report
row = ["" for _ in range(len(report_data[0]))]
row[0] = "`{board_name}`".format(board_name=fqbn_data[self.ReportKeys.board])
row[0] = f"`{fqbn_data[self.ReportKeys.board]}`"
report_data.append(row)

# Populate the row with data
Expand Down Expand Up @@ -443,7 +443,7 @@ def add_detailed_report_row(self, report_data, fqbn_data):
row_number = len(report_data)
# Add a row to the report
row = ["" for _ in range(len(report_data[0]))]
row[0] = "`{board_name}`".format(board_name=fqbn_data[self.ReportKeys.board])
row[0] = f"`{fqbn_data[self.ReportKeys.board]}`"
report_data.append(row)

# Populate the row with data
Expand Down