remove upgrade UP032
This commit is contained in:
parent
b038cc7f1c
commit
d7293e08e1
3 changed files with 3 additions and 5 deletions
|
|
@ -474,7 +474,7 @@ class PortalBase:
|
|||
string = func(values[value_index])
|
||||
else:
|
||||
try:
|
||||
string = "{:,d}".format(int(values[value_index]))
|
||||
string = f"{int(values[value_index]):,d}"
|
||||
except (TypeError, ValueError):
|
||||
string = values[value_index] # ok it's a string
|
||||
self._fetch_set_text(string, index=i)
|
||||
|
|
|
|||
|
|
@ -668,9 +668,7 @@ class NetworkBase:
|
|||
print("Couldn't parse json: ", response.text)
|
||||
raise
|
||||
except MemoryError as error:
|
||||
raise MemoryError(
|
||||
"{} (data is likely too large)".format(error)
|
||||
) from error
|
||||
raise MemoryError(f"{error} (data is likely too large)") from error
|
||||
|
||||
if content_type == CONTENT_JSON:
|
||||
values = self.process_json(json_out, json_path)
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@ target-version = "py38"
|
|||
|
||||
[tool.ruff.lint]
|
||||
select = ["I", "PL", "UP"]
|
||||
ignore = ["PLR2004", "UP030", "UP032"]
|
||||
ignore = ["PLR2004", "UP030"]
|
||||
|
||||
[tool.ruff.format]
|
||||
line-ending = "lf"
|
||||
|
|
|
|||
Loading…
Reference in a new issue