Validate model name format. Args: model: Model name to validate Returns: Validated model name Raises: ConfigurationError: If model name is invalid
(model: str)
| 80 | |
| 81 | Args: |
| 82 | model: Model name to validate |
| 83 | |
| 84 | Returns: |
| 85 | Validated model name |
| 86 | |
| 87 | Raises: |
| 88 | ConfigurationError: If model name is invalid |
| 89 | """ |
| 90 | if not model or not model.strip(): |
| 91 | raise ConfigurationError("Model name cannot be empty") |
| 92 | |
| 93 | return model.strip() |
| 94 | |
| 95 | |
| 96 | def validate_output_directory(path: str) -> Path: |
| 97 | """ |
| 98 | Validate output directory path. |
| 99 | |
| 100 | Args: |
| 101 | path: Directory path to validate |
no test coverage detected