Skip to content

Commit 85c4c97

Browse files
committed
chore: lint code
1 parent fad488c commit 85c4c97

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

src/llama_prompt_ops/interfaces/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -799,7 +799,7 @@ def migrate(config, model, output_dir, save_yaml, api_key_env, dotenv_path, log_
799799
except ValueError as e:
800800
click.echo(f"Error: {str(e)}", err=True)
801801
sys.exit(1)
802-
802+
803803
# Validate the minimum number of records in dataset
804804
try:
805805
validate_min_records_in_dataset(dataset_adapter)

tests/integration/test_cli_integration.py

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,10 @@ def test_cli_migrate_command(self, mock_api_key_check, temp_config_file):
131131
"llama_prompt_ops.interfaces.cli.get_strategy", return_value=MagicMock()
132132
),
133133
patch("llama_prompt_ops.interfaces.cli.load_config", return_value={}),
134-
patch("llama_prompt_ops.interfaces.cli.validate_min_records_in_dataset", return_value=None),
134+
patch(
135+
"llama_prompt_ops.interfaces.cli.validate_min_records_in_dataset",
136+
return_value=None,
137+
),
135138
):
136139

137140
# Run the migrate command
@@ -195,7 +198,10 @@ def test_cli_config_loading(self, mock_api_key_check, facility_config_path):
195198
"llama_prompt_ops.interfaces.cli.get_strategy", return_value=MagicMock()
196199
),
197200
patch("llama_prompt_ops.interfaces.cli.load_config", return_value={}),
198-
patch("llama_prompt_ops.interfaces.cli.validate_min_records_in_dataset", return_value=None),
201+
patch(
202+
"llama_prompt_ops.interfaces.cli.validate_min_records_in_dataset",
203+
return_value=None,
204+
),
199205
):
200206

201207
# Run the migrate command with the real config
@@ -270,7 +276,10 @@ def test_end_to_end_cli_flow(self, mock_api_key_check, temp_config_file):
270276
return_value=MagicMock(),
271277
),
272278
patch("llama_prompt_ops.interfaces.cli.load_config", return_value={}),
273-
patch("llama_prompt_ops.interfaces.cli.validate_min_records_in_dataset", return_value=None),
279+
patch(
280+
"llama_prompt_ops.interfaces.cli.validate_min_records_in_dataset",
281+
return_value=None,
282+
),
274283
):
275284

276285
# Run the migrate command with the actual file output

0 commit comments

Comments
 (0)