# HG changeset patch
# User Vincent Hatakeyama <vincent.hatakeyama@xcg-consulting.fr>
# Date 1673856698 -3600
#      Mon Jan 16 09:11:38 2023 +0100
# Node ID 97a415b8440f6776f84d9a02b9861b4e687c426f
# Parent  08a077a0f9570168a7d2a73a3c72399d61748f3a
👕 ignore new flake8 bugbear false positives

diff --git a/odoo_scripts/docker_dev_start.py b/odoo_scripts/docker_dev_start.py
--- 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