diff --git a/.darglint b/.darglint deleted file mode 100644 index 209231ee0..000000000 --- a/.darglint +++ /dev/null @@ -1,10 +0,0 @@ -# -*- mode: ini -*- - -[darglint] -docstring_style=google - -# DAR402: The docstring describes an exception not explicitly raised. -# -# Ignoring DAR402 because there are cases where public methods -# document exceptions raised by underlying functions. -ignore=DAR402 diff --git a/src/frequenz/sdk/actor/_background_service.py b/src/frequenz/sdk/actor/_background_service.py index 64e55cb9b..6e6587094 100644 --- a/src/frequenz/sdk/actor/_background_service.py +++ b/src/frequenz/sdk/actor/_background_service.py @@ -141,8 +141,6 @@ async def stop(self, msg: str | None = None) -> None: Raises: BaseExceptionGroup: If any of the tasks spawned by this service raised an exception. - - [//]: # (# noqa: DAR401 rest) """ if not self._tasks: return diff --git a/src/frequenz/sdk/timeseries/_moving_window.py b/src/frequenz/sdk/timeseries/_moving_window.py index 2a404d94a..62376f21b 100644 --- a/src/frequenz/sdk/timeseries/_moving_window.py +++ b/src/frequenz/sdk/timeseries/_moving_window.py @@ -374,24 +374,15 @@ def count_covered(self) -> int: @overload def __getitem__(self, key: SupportsIndex) -> float: - """See the main __getitem__ method. - - [//]: # (# noqa: DAR101 key) - """ + """See the main __getitem__ method.""" @overload def __getitem__(self, key: datetime) -> float: - """See the main __getitem__ method. - - [//]: # (# noqa: DAR101 key) - """ + """See the main __getitem__ method.""" @overload def __getitem__(self, key: slice) -> ArrayLike: - """See the main __getitem__ method. - - [//]: # (# noqa: DAR101 key) - """ + """See the main __getitem__ method.""" def __getitem__(self, key: SupportsIndex | datetime | slice) -> float | ArrayLike: """ diff --git a/src/frequenz/sdk/timeseries/_resampling.py b/src/frequenz/sdk/timeseries/_resampling.py index d60b15922..26369da8f 100644 --- a/src/frequenz/sdk/timeseries/_resampling.py +++ b/src/frequenz/sdk/timeseries/_resampling.py @@ -821,8 +821,6 @@ async def resample(self, timestamp: datetime) -> None: If the error is in the sink, the receiving part will continue working while this helper is alive. - - [//]: # (# noqa: DAR401 recv_exception) """ if self._receiving_task.done(): if recv_exception := self._receiving_task.exception():