From 52ad33aa2f104ab479efcc6d997fc5ee0962e500 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 20 Nov 2023 17:28:35 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/split_parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/split_parser.py b/src/split_parser.py index 6c1281db..e16ae643 100644 --- a/src/split_parser.py +++ b/src/split_parser.py @@ -99,7 +99,7 @@ def loop_from_filename(filename: str): value = __value_from_filename(filename, "@@", 1) # Loop should always be positive - return value if value >= 1 else 1 + return max(value, 1) def comparison_method_from_filename(filename: str):