Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
haiqi96 committed Dec 18, 2024
1 parent 214ae3f commit 6ff92fc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
8 changes: 4 additions & 4 deletions components/clp-py-utils/clp_py_utils/clp_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,19 +320,19 @@ class S3Config(BaseModel):
@validator("region_code")
def validate_region_code(cls, field):
if field == "":
raise ValueError("region_code can not be empty")
raise ValueError("region_code cannot be empty")
return field

@validator("bucket")
def validate_bucket(cls, field):
if field == "":
raise ValueError("bucket can not be empty")
raise ValueError("bucket cannot be empty")
return field

@validator("key_prefix")
def validate_key_prefix(cls, field):
if field == "":
raise ValueError("key_prefix can not be empty")
raise ValueError("key_prefix cannot be empty")
if not field.endswith("/"):
raise ValueError('key_prefix must end with "/"')
return field
Expand Down Expand Up @@ -442,7 +442,7 @@ class StreamOutput(BaseModel):
@validator("directory")
def validate_directory(cls, field):
if "" == field:
raise ValueError("directory can not be empty")
raise ValueError("directory cannot be empty")
return field

@validator("target_uncompressed_size")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
from job_orchestration.scheduler.constants import CompressionTaskStatus
from job_orchestration.scheduler.job_config import ClpIoConfig, PathsToCompress
from job_orchestration.scheduler.scheduler_data import CompressionTaskResult
from result import is_err, Result

# Setup logging
logger = get_task_logger(__name__)
Expand Down

0 comments on commit 6ff92fc

Please sign in to comment.