Skip to content

Commit

Permalink
feat: ignore deprecation in codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
cofin committed Nov 12, 2024
1 parent 961e212 commit f531690
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion litestar/contrib/pydantic/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def __getattr__(attr_name: str) -> object:
value = globals()[attr_name] = locals()[attr_name]
return value

raise AttributeError(f"module {__name__!r} has no attribute {attr_name!r}")
raise AttributeError(f"module {__name__!r} has no attribute {attr_name!r}") # pragma: no cover


if TYPE_CHECKING:
Expand Down
2 changes: 1 addition & 1 deletion litestar/contrib/pydantic/pydantic_di_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
__all__ = ("PydanticDIPlugin",)

Check warning on line 8 in litestar/contrib/pydantic/pydantic_di_plugin.py

View check run for this annotation

Codecov / codecov/patch

litestar/contrib/pydantic/pydantic_di_plugin.py#L8

Added line #L8 was not covered by tests


def __getattr__(attr_name: str) -> object:
def __getattr__(attr_name: str) -> object: # pragma: no cover
if attr_name in __all__:
from litestar.plugins.pydantic.plugins.di import PydanticDIPlugin

Expand Down
2 changes: 1 addition & 1 deletion litestar/contrib/pydantic/pydantic_dto_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
__all__ = ("PydanticDTO",)


def __getattr__(attr_name: str) -> object:
def __getattr__(attr_name: str) -> object: # pragma: no cover
if attr_name in __all__:
from litestar.plugins.pydantic.dto import PydanticDTO

Expand Down
2 changes: 1 addition & 1 deletion litestar/contrib/pydantic/pydantic_init_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
__all__ = ("PydanticInitPlugin",)

Check warning on line 8 in litestar/contrib/pydantic/pydantic_init_plugin.py

View check run for this annotation

Codecov / codecov/patch

litestar/contrib/pydantic/pydantic_init_plugin.py#L8

Added line #L8 was not covered by tests


def __getattr__(attr_name: str) -> object:
def __getattr__(attr_name: str) -> object: # pragma: no cover
if attr_name in __all__:
from litestar.plugins.pydantic.plugins.init import PydanticInitPlugin

Expand Down
2 changes: 1 addition & 1 deletion litestar/contrib/pydantic/pydantic_schema_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
__all__ = ("PydanticSchemaPlugin",)

Check warning on line 8 in litestar/contrib/pydantic/pydantic_schema_plugin.py

View check run for this annotation

Codecov / codecov/patch

litestar/contrib/pydantic/pydantic_schema_plugin.py#L8

Added line #L8 was not covered by tests


def __getattr__(attr_name: str) -> object:
def __getattr__(attr_name: str) -> object: # pragma: no cover
if attr_name in __all__:
from litestar.plugins.pydantic.plugins.schema import PydanticSchemaPlugin

Expand Down

0 comments on commit f531690

Please sign in to comment.