Skip to content

Commit d7293e0

Browse files
committed
remove upgrade UP032
1 parent b038cc7 commit d7293e0

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

adafruit_portalbase/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,7 @@ def _fill_text_labels(self, values):
474474
string = func(values[value_index])
475475
else:
476476
try:
477-
string = "{:,d}".format(int(values[value_index]))
477+
string = f"{int(values[value_index]):,d}"
478478
except (TypeError, ValueError):
479479
string = values[value_index] # ok it's a string
480480
self._fetch_set_text(string, index=i)

adafruit_portalbase/network.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -668,9 +668,7 @@ def _parse_data(
668668
print("Couldn't parse json: ", response.text)
669669
raise
670670
except MemoryError as error:
671-
raise MemoryError(
672-
"{} (data is likely too large)".format(error)
673-
) from error
671+
raise MemoryError(f"{error} (data is likely too large)") from error
674672

675673
if content_type == CONTENT_JSON:
676674
values = self.process_json(json_out, json_path)

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ target-version = "py38"
4646

4747
[tool.ruff.lint]
4848
select = ["I", "PL", "UP"]
49-
ignore = ["PLR2004", "UP030", "UP032"]
49+
ignore = ["PLR2004", "UP030"]
5050

5151
[tool.ruff.format]
5252
line-ending = "lf"

0 commit comments

Comments
 (0)