From 29624962537c1db46bdd501e370325b0ea608f59 Mon Sep 17 00:00:00 2001 From: "John T. Wodder II" Date: Thu, 9 Nov 2023 10:12:53 -0500 Subject: [PATCH] Remove redundant `pragma: no cover` comments --- src/tinuous/base.py | 6 +++--- src/tinuous/config.py | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/tinuous/base.py b/src/tinuous/base.py index 5365c8d..e3a7b5d 100644 --- a/src/tinuous/base.py +++ b/src/tinuous/base.py @@ -202,13 +202,13 @@ class CISystem(ABC, BaseModel): @staticmethod @abstractmethod def get_auth_tokens() -> dict[str, str]: - ... # pragma: no cover + ... @abstractmethod def get_build_assets( self, event_types: list[EventType], logs: bool, artifacts: bool ) -> Iterator[BuildAsset]: - ... # pragma: no cover + ... def register_build(self, ts: datetime, processed: bool) -> None: heapq.heappush(self.fetched, (ts, processed)) @@ -268,7 +268,7 @@ def expand_path(self, path_template: str, variables: dict[str, str]) -> str: @abstractmethod def download(self, path: Path) -> list[Path]: - ... # pragma: no cover + ... class BuildLog(BuildAsset): diff --git a/src/tinuous/config.py b/src/tinuous/config.py index dca9d1b..91cfb06 100644 --- a/src/tinuous/config.py +++ b/src/tinuous/config.py @@ -51,7 +51,7 @@ class CIConfig(NoExtraModel, ABC): @staticmethod @abstractmethod def get_auth_tokens() -> dict[str, str]: - ... # pragma: no cover + ... @abstractmethod def get_system( @@ -61,7 +61,7 @@ def get_system( until: Optional[datetime], tokens: dict[str, str], ) -> CISystem: - ... # pragma: no cover + ... def gets_builds(self) -> bool: return self.paths.gets_builds()