Skip to content

Commit 3dfa7bb

Browse files
committed
lint
1 parent 48dcea6 commit 3dfa7bb

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

src/data_designer/interface/results.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,9 @@ def load_processor_dataset(self, processor_name: str) -> pd.DataFrame:
6969
A pandas DataFrame containing the dataset generated by the processor.
7070
"""
7171
try:
72-
dataset = self.artifact_storage.read_parquet_files(self.artifact_storage.processors_outputs_path / processor_name)
72+
dataset = self.artifact_storage.read_parquet_files(
73+
self.artifact_storage.processors_outputs_path / processor_name
74+
)
7375
except Exception as e:
7476
raise ArtifactStorageError(f"Failed to load dataset for processor {processor_name}: {e}")
7577

tests/config/utils/test_validation.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,11 +286,17 @@ def test_validate_ancillary_dataset_processor():
286286
assert len(violations) == 2
287287
assert violations[0].type == ViolationType.INVALID_REFERENCE
288288
assert violations[0].column is None
289-
assert violations[0].message == "Ancillary dataset processor attempts to reference columns 'invalid_reference' in the template for 'text', but the columns are not defined in the dataset."
289+
assert (
290+
violations[0].message
291+
== "Ancillary dataset processor attempts to reference columns 'invalid_reference' in the template for 'text', but the columns are not defined in the dataset."
292+
)
290293
assert violations[0].level == ViolationLevel.ERROR
291294
assert violations[1].type == ViolationType.INVALID_TEMPLATE
292295
assert violations[1].column is None
293-
assert violations[1].message == "Ancillary dataset processor ancillary_dataset_processor_invalid_template template is not a valid JSON object."
296+
assert (
297+
violations[1].message
298+
== "Ancillary dataset processor ancillary_dataset_processor_invalid_template template is not a valid JSON object."
299+
)
294300
assert violations[1].level == ViolationLevel.ERROR
295301

296302

0 commit comments

Comments
 (0)