From 171f875c7b2e695ebc1f868b3f3410f9dcdbd5f7 Mon Sep 17 00:00:00 2001 From: briancaffey Date: Wed, 6 Mar 2024 17:13:28 -0500 Subject: [PATCH] fix(lint): fix linting with black --- backend/apps/core/db.py | 2 +- backend/apps/core/management/commands/create_database.py | 9 ++++----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/backend/apps/core/db.py b/backend/apps/core/db.py index 6b85cac..1063ebb 100644 --- a/backend/apps/core/db.py +++ b/backend/apps/core/db.py @@ -17,7 +17,7 @@ def create_database(database_name=None): dbname="postgres", user="postgres", host=os.environ.get("POSTGRES_SERVICE_HOST", "localhost"), - password=from_secret() # os.environ.get("POSTGRES_PASSWORD", "postgres") + password=from_secret(), # os.environ.get("POSTGRES_PASSWORD", "postgres") ) # https://www.psycopg.org/docs/connection.html#connection.set_isolation_level diff --git a/backend/apps/core/management/commands/create_database.py b/backend/apps/core/management/commands/create_database.py index a69bae8..fbfb87b 100644 --- a/backend/apps/core/management/commands/create_database.py +++ b/backend/apps/core/management/commands/create_database.py @@ -10,14 +10,13 @@ class Command(BaseCommand): - def add_arguments(self, parser): parser.add_argument( - '--database_name', - action='store', - dest='database_name', + "--database_name", + action="store", + dest="database_name", default=None, - help='Optional database name argument', + help="Optional database name argument", ) def handle(self, *args, **options):