Skip to content
Snippets Groups Projects
Verified Commit 1dc85c77 authored by Yoann Schneider's avatar Yoann Schneider :tennis:
Browse files

Introduce UP030

parent f6f0a7a1
No related branches found
No related tags found
No related merge requests found
This commit is part of merge request !2307. Comments created here will be created in the context of that merge request.
......@@ -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