Skip to content

Commit

Permalink
[pre-commit.ci] Auto fixes from pre-commit hooks
Browse files Browse the repository at this point in the history
For more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Apr 1, 2024
1 parent fd29ad1 commit 66b28ce
Showing 1 changed file with 20 additions and 12 deletions.
32 changes: 20 additions & 12 deletions tests/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)}"
),
]


Expand Down

0 comments on commit 66b28ce

Please sign in to comment.