From 317dc47829f647a392b5a507a5ff5a4755ec595a Mon Sep 17 00:00:00 2001 From: Soufyan Abdellati Date: Thu, 3 Oct 2024 09:15:45 +0000 Subject: [PATCH] Moved the handling of None-type values to satisfy pre-commit --- bytes/bytes/raw/file_raw_repository.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bytes/bytes/raw/file_raw_repository.py b/bytes/bytes/raw/file_raw_repository.py index ae43120e209..bb24f14df76 100644 --- a/bytes/bytes/raw/file_raw_repository.py +++ b/bytes/bytes/raw/file_raw_repository.py @@ -19,8 +19,8 @@ def create_raw_repository(settings: Settings) -> RawRepository: return S3RawRepository( make_middleware(), settings.bucket_per_org, - settings.s3_bucket_prefix, - settings.s3_bucket_name, + settings.s3_bucket_prefix or "OpenKAT-", + settings.s3_bucket_name or "OpenKAT", ) else: return FileRawRepository( @@ -80,8 +80,8 @@ def __init__( self, file_middleware: FileMiddleware, bucket_per_org: bool, - s3_bucket_prefix: str = "OpenKAT-", - s3_bucket_name: str = "OpenKAT", + s3_bucket_prefix: str, + s3_bucket_name: str, ) -> None: self._file_middleware = file_middleware self.bucket_per_org = bucket_per_org