Skip to content

2.5.0

Choose a tag to compare

@bhirsz bhirsz released this 05 Jun 15:22
· 247 commits to main since this release
052653c

New release of the Robotidy: 2.5.0. In this release we have added new transformer (IndentNestedKeywords) and enhanced autoformatting in NormalizeNewLines. For more information read the details below.

To upgrade to Robotidy 2.5.0 run following:

pip install -U robotframework-tidy

Indent run keywords

New IndentNestedKeywords transformer for formatting whitespace in run keywords variants such as Run Keywords or
Run Keyword And Continue On Failure. It will result in transforming following code:

Run Keyword    Run Keyword If    ${True}    Run keywords   Log    foo    AND    Log    bar    ELSE    Log    baz

to:

Run Keyword
...    Run Keyword If    ${True}
...        Run keywords
...            Log    foo
...            AND
...            Log    bar
...    ELSE
...        Log    baz

Remove empty lines in multiline statements

NormalizeNewLines transformer now removes empty lines inside multiline statements. Such lines are allowed by Robot Framework but decrease readilibity:

*** Keywords ***
Keyword
    Keyword With
    ...  Multiline arguments

    ...  With empty lines

will be formatted to:

*** Keywords ***
Keyword
    Keyword With
    ...  Multiline arguments
    ...  With empty lines