Skip to content
Snippets Groups Projects
Commit 2b9aed5f authored by Yoann Schneider's avatar Yoann Schneider :tennis: Committed by Erwan Rouchet
Browse files

Introduce UP030

parent de6a6490
No related branches found
No related tags found
1 merge request!2307Introduce pyupgrade
......@@ -218,8 +218,8 @@ class Image(S3FileMixin, IndexableModel):
if max_width is None and max_height is None:
resize = "full"
else:
resize = "{0},{1}".format(max_width or "", max_height or "")
return "{0}/full/{1}/0/default.jpg".format(self.url.rstrip("/"), resize)
resize = "{},{}".format(max_width or "", max_height or "")
return "{}/full/{}/0/default.jpg".format(self.url.rstrip("/"), resize)
@property
def s3_put_url(self):
......
......@@ -37,6 +37,8 @@ select = [
"UP024",
# unpacked-list-comprehension
"UP027",
# format-literals
"UP030",
]
ignore = ["E501", "RET502", "RET503"]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment