-
Notifications
You must be signed in to change notification settings - Fork 83
feat(job-orchestration): Allow compression jobs to specify S3 object keys via S3InputConfig.
#1407
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 18 commits
3efacb5
433ca9e
58af081
8080ee5
033b3f8
fd21e56
af281ab
4b63bcb
b2e14c6
0a0bdcd
710164e
771eeed
f6f918c
a98e995
a4f1c7f
9f547d7
57fddc5
7965b80
bfd82bb
b14a1c2
beeac70
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -30,9 +30,17 @@ class FsInputConfig(BaseModel): | |
|
|
||
| class S3InputConfig(S3Config): | ||
| type: Literal[InputType.S3.value] = InputType.S3.value | ||
| keys: Optional[List[str]] = None | ||
| dataset: Optional[str] = None | ||
| timestamp_key: Optional[str] = None | ||
|
|
||
| @field_validator("keys") | ||
| @classmethod | ||
| def validate_keys(cls, value): | ||
| if value is not None and len(value) == 0: | ||
| raise ValueError("Keys cannot be an empty list") | ||
| return value | ||
|
Comment on lines
+37
to
+42
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion | 🟠 Major Annotate the validator return type to keep Ruff happy Ruff’s ANN206 rule flags this classmethod because it lacks a return-type annotation. Adding - def validate_keys(cls, value):
+ def validate_keys(cls, value: Optional[List[str]]) -> Optional[List[str]]:🧰 Tools🪛 Ruff (0.14.0)39-39: Missing return type annotation for classmethod (ANN206) 41-41: Avoid specifying long messages outside the exception class (TRY003) 🤖 Prompt for AI Agents |
||
|
|
||
|
|
||
| class OutputConfig(BaseModel): | ||
| tags: Optional[List[str]] = None | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.