fix: resolve CI linting and type errors
This commit is contained in:
@@ -1,38 +1,49 @@
|
|||||||
|
"""Custom exceptions for PromptForge."""
|
||||||
|
|
||||||
|
|
||||||
class PromptForgeError(Exception):
|
class PromptForgeError(Exception):
|
||||||
"""Base exception for PromptForge errors."""
|
"""Base exception for PromptForge errors."""
|
||||||
|
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class InvalidPromptError(PromptForgeError):
|
class InvalidPromptError(PromptForgeError):
|
||||||
"""Raised when a prompt YAML is malformed."""
|
"""Raised when a prompt YAML is malformed."""
|
||||||
|
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class ProviderError(PromptForgeError):
|
class ProviderError(PromptForgeError):
|
||||||
"""Raised when LLM API operations fail."""
|
"""Raised when LLM API operations fail."""
|
||||||
|
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class ValidationError(PromptForgeError):
|
class ValidationError(PromptForgeError):
|
||||||
"""Raised when response validation fails."""
|
"""Raised when response validation fails."""
|
||||||
|
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class GitError(PromptForgeError):
|
class GitError(PromptForgeError):
|
||||||
"""Raised when git operations fail."""
|
"""Raised when git operations fail."""
|
||||||
|
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class RegistryError(PromptForgeError):
|
class RegistryError(PromptForgeError):
|
||||||
"""Raised when registry operations fail."""
|
"""Raised when registry operations fail."""
|
||||||
|
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class MissingVariableError(PromptForgeError):
|
class MissingVariableError(PromptForgeError):
|
||||||
"""Raised when a required template variable is missing."""
|
"""Raised when a required template variable is missing."""
|
||||||
|
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class ConfigurationError(PromptForgeError):
|
class ConfigurationError(PromptForgeError):
|
||||||
"""Raised when configuration is invalid."""
|
"""Raised when configuration is invalid."""
|
||||||
pass
|
|
||||||
|
pass
|
||||||
|
|||||||
Reference in New Issue
Block a user