[ruff UP031] Fix to use format specifiers instead of percent format
This commit is contained in:
@@ -60,7 +60,7 @@ def report(issues):
|
||||
kind = _get_kind(issue)
|
||||
status = issue["state"]
|
||||
number = issue["number"]
|
||||
link = "https://github.com/pytest-dev/pytest/issues/%s/" % number
|
||||
link = f"https://github.com/pytest-dev/pytest/issues/{number}/"
|
||||
print("----")
|
||||
print(status, kind, link)
|
||||
print(title)
|
||||
@@ -69,7 +69,7 @@ def report(issues):
|
||||
# print("\n".join(lines[:3]))
|
||||
# if len(lines) > 3 or len(body) > 240:
|
||||
# print("...")
|
||||
print("\n\nFound %s open issues" % len(issues))
|
||||
print(f"\n\nFound {len(issues)} open issues")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
Reference in New Issue
Block a user