diff --git a/arkindex/images/models.py b/arkindex/images/models.py index 8b904acaf919c199d8ce862d12280b5da03dd7f4..9e5e4270098cc8b9f931633152db2d772c9a342c 100644 --- a/arkindex/images/models.py +++ b/arkindex/images/models.py @@ -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): diff --git a/ruff.toml b/ruff.toml index 5ae44b642e3396a36a938d1252a748e9df545cc9..bc95bd11bfe8f92dab499b7af78e7c14509d76ea 100644 --- a/ruff.toml +++ b/ruff.toml @@ -37,6 +37,8 @@ select = [ "UP024", # unpacked-list-comprehension "UP027", + # format-literals + "UP030", ] ignore = ["E501", "RET502", "RET503"]