pre-commit run -a

This commit is contained in:
Iván Todorovich committed 2026-05-20 09:53:30 -03:00
1 parent 16af2b988d
commit 3330aa4986
14 files changed
+26 -29

No files matched your search

+2 -2
View File
@@ -69,7 +69,7 @@ class CloudPlatform(models.AbstractModel):
self.check()
if configs.filestore.location == "remote":
self.env["ir.attachment"].sudo().force_storage()
_logger.info("cloud platform configured for {}".format(platform_kind))
_logger.info(f"cloud platform configured for {platform_kind}")
@api.model
def install(self):
@@ -125,5 +125,5 @@ class CloudPlatform(models.AbstractModel):
self._check_redis(environment_name)
def _register_hook(self):
super(CloudPlatform, self)._register_hook()
super()._register_hook()
self.sudo().check()
+1 -1
View File
@@ -18,4 +18,4 @@ def strtobool(value):
try:
return _MAP[str(value).lower()]
except KeyError as error:
raise ValueError('"{}" is not a valid bool value'.format(value)) from error
raise ValueError(f'"{value}" is not a valid bool value') from error
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.