diff --git a/odoo_scripts/docker_dev_start.py b/odoo_scripts/docker_dev_start.py index 08a077a0f9570168a7d2a73a3c72399d61748f3a_b2Rvb19zY3JpcHRzL2RvY2tlcl9kZXZfc3RhcnQucHk=..97a415b8440f6776f84d9a02b9861b4e687c426f_b2Rvb19zY3JpcHRzL2RvY2tlcl9kZXZfc3RhcnQucHk= 100755 --- a/odoo_scripts/docker_dev_start.py +++ b/odoo_scripts/docker_dev_start.py @@ -923,7 +923,8 @@ connection.autocommit = True _logger.info("Creating database %s", database) with connection.cursor() as cursor: - cursor.execute(f'CREATE DATABASE "{database}"') + # disable B028 as using !r would use single quote + cursor.execute(f'CREATE DATABASE "{database}"') # noqa: B028 connection.close() if not start_postgresql and not odoo_help and restore_filename: _logger.info("Restoring database %s", database) @@ -1036,7 +1037,8 @@ _logger.debug("Database role exists") try: _logger.info("Creating database %s", redner_database) - cursor.execute(f'CREATE DATABASE "{redner_database}"') + # disable B028 as using !r would use single quote + cursor.execute(f'CREATE DATABASE "{redner_database}"') # noqa: B028 _logger.info("Database created") except DuplicateDatabase: # ignore exception if the database already exists