From 24a77363d0b200ecfbecc5fccdbdfac8b73a016a Mon Sep 17 00:00:00 2001 From: maurane glaude Date: Tue, 1 Sep 2026 15:38:27 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=84style(project):=20turn=20all=20rest?= =?UTF-8?q?ructure=20docstrings=20into=20google=20docstrings?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/logwatcher/cli.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/logwatcher/cli.py b/src/logwatcher/cli.py index cfe0f41..cea6754 100644 --- a/src/logwatcher/cli.py +++ b/src/logwatcher/cli.py @@ -16,7 +16,9 @@ def version_callback(value: bool): """ Print the version of package. Stop the CLI after printing version. - :return: + + Args: + value: True if '--version' is provided, False otherwise. """ if value: print(f"logwatcher version: {__version__}") @@ -26,7 +28,13 @@ def version_callback(value: bool): def _is_log_file(path: Path) -> bool: """ Return True if file is a log file (.txt, .log, or extensionless). - :param path: Path to log file + + Args: + path: Path of a file + + Returns: + True if file has .txt or .log extension or extensionless + False otherwise. """ if not path.is_file(): return False