From 66b28cebcab1b317748a98c4bde33e771e39aafd Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 1 Apr 2024 21:59:58 +0000 Subject: [PATCH] [pre-commit.ci] Auto fixes from pre-commit hooks For more information, see https://pre-commit.ci --- tests/helpers.py | 32 ++++++++++++++++++++------------ 1 file changed, 20 insertions(+), 12 deletions(-) diff --git a/tests/helpers.py b/tests/helpers.py index c5ae791..7b47fe3 100644 --- a/tests/helpers.py +++ b/tests/helpers.py @@ -31,19 +31,27 @@ def make_options( def options_to_cli_args(options): return [ "" if options.write_back is WriteBackMode.INPLACE else "--check", - "" - if options.step_keyword_alignment is AlignmentMode.NONE - else f"--alignment {options.step_keyword_alignment.value}", - "" - if options.newline is NewlineMode.KEEP - else f"--newline {options.newline.value}", + ( + "" + if options.step_keyword_alignment is AlignmentMode.NONE + else f"--alignment {options.step_keyword_alignment.value}" + ), + ( + "" + if options.newline is NewlineMode.KEEP + else f"--newline {options.newline.value}" + ), "--fast" if options.fast else "--safe", - "--single-line-tags" - if options.tag_line_mode is TagLineMode.SINGLELINE - else "--multi-line-tags", - "--use-tabs" - if options.indent == "\t" - else f"--tab-width {len(options.indent)}", + ( + "--single-line-tags" + if options.tag_line_mode is TagLineMode.SINGLELINE + else "--multi-line-tags" + ), + ( + "--use-tabs" + if options.indent == "\t" + else f"--tab-width {len(options.indent)}" + ), ]