From cd1f4a6ee878f1f9830bbc55dee2d597a7b7a4fe Mon Sep 17 00:00:00 2001 From: Jack Cherng Date: Fri, 2 Feb 2024 14:39:37 +0800 Subject: [PATCH] style: make ruff happy Signed-off-by: Jack Cherng --- plugin/rules/constraints/is_interpreter.py | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/plugin/rules/constraints/is_interpreter.py b/plugin/rules/constraints/is_interpreter.py index ffd8da49..afc26515 100644 --- a/plugin/rules/constraints/is_interpreter.py +++ b/plugin/rules/constraints/is_interpreter.py @@ -21,14 +21,12 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: interpreters_regex = rf"(?:{interpreters_regex}(?:[\-_]?\d+(?:\.\d+)*)?)" self.first_line_regex: Pattern[str] = compile_regex( - merge_regexes( - ( - # shebang - rf"^#!(?:.+)\b{interpreters_regex}\b", - # VIM's syntax line - rf"\bsyntax={interpreters_regex}(?=$|\\s)", - ) - ) + merge_regexes(( + # shebang + rf"^#!(?:.+)\b{interpreters_regex}\b", + # VIM's syntax line + rf"\bsyntax={interpreters_regex}(?=$|\\s)", + )) ) def is_droppable(self) -> bool: