diff --git a/pyproject.toml b/pyproject.toml index bf3c24a..d516d5a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "pyamldantic" -version = "1.1.0" +version = "1.1.1" description = "Validate and serialize YAML config files with Pydantic, with support for environment variables." readme = "README.md" authors = [ diff --git a/src/pyamldantic/config.py b/src/pyamldantic/config.py index 5ae818d..b3fb542 100644 --- a/src/pyamldantic/config.py +++ b/src/pyamldantic/config.py @@ -7,7 +7,6 @@ from yaml.scanner import ScannerError from .exceptions import ( - FileNotFoundError, # noqa: A004 InvalidYAMLError, MissingEnvironmentVariableError, SchemaValidationError, diff --git a/src/pyamldantic/exceptions.py b/src/pyamldantic/exceptions.py index c9cb9a9..704b20e 100644 --- a/src/pyamldantic/exceptions.py +++ b/src/pyamldantic/exceptions.py @@ -1,10 +1,3 @@ -class FileNotFoundError(Exception): # noqa: A001 - """Raised when the config file is not found.""" - - def __init__(self, path: str) -> None: # noqa: D107 - super().__init__(f"{path} not found") - - class InvalidYAMLError(Exception): """Raised when the config file is not a valid YAML file.""" diff --git a/tests/file_not_found_test.py b/tests/file_not_found_test.py index 3d38295..b04934b 100644 --- a/tests/file_not_found_test.py +++ b/tests/file_not_found_test.py @@ -1,7 +1,6 @@ import pytest from src.pyamldantic import YAMLConfig -from src.pyamldantic.exceptions import FileNotFoundError # noqa: A004 from .fixtures import Schema diff --git a/uv.lock b/uv.lock index 7b45201..ce1e535 100644 --- a/uv.lock +++ b/uv.lock @@ -165,7 +165,7 @@ wheels = [ [[package]] name = "pyamldantic" -version = "1.1.0" +version = "1.1.1" source = { editable = "." } dependencies = [ { name = "pydantic" },