diff --git a/docs/releasenotes/4.14.0.rst b/docs/releasenotes/4.14.0.rst new file mode 100644 index 00000000..c6bdfb29 --- /dev/null +++ b/docs/releasenotes/4.14.0.rst @@ -0,0 +1,54 @@ +:orphan: + +============== +Robotidy 4.14.0 +============== + +You can install the latest available version by running + +:: + + pip install --upgrade robotframework-tidy + +or to install exactly this version + +:: + + pip install robotframework-tidy==4.14.0 + +.. contents:: + :depth: 2 + :local: + +Transformers changes +==================== + +Ignore comments in IndentNestedKeywords transformer (#702) +---------------------------------------------------------- + +``IndentNestedKeywords`` moves comments before transformation. This is required in order to properly format different +types of the source code (especially when expanding single line to multiple lines). However as side affect +``IndentNestedKeywords`` moved the comments even if the code didn't require formatting:: + + *** Test Cases *** + Keyword with commented out single line + Run Keywords + ... No Operation + # ... No Operation + ... No Operation + +In such case the code is already formatted and does not require moving the comments. After this release such +comments will be left alone in a case where the code is already formatted. + +Use variable_separator when converting variable from camelCase in RenameVariables (#705) +---------------------------------------------------------------------------------------- + +Previously ``variable_separator`` configuration was not respected when converting variable names from camelCase to +snake_case. In result variable names were converted with spaces as the separator:: + + # from + ${camelCase} + # to + ${camel case} + +Now the setting will be taken into account. diff --git a/docs/releasenotes/unreleased/template.jinja b/docs/releasenotes/unreleased/template.jinja index 6fdb16dc..4a1d2430 100644 --- a/docs/releasenotes/unreleased/template.jinja +++ b/docs/releasenotes/unreleased/template.jinja @@ -3,9 +3,7 @@ ============== Robotidy {{ version }} ============== - {{ summary }} - You can install the latest available version by running :: @@ -21,22 +19,21 @@ or to install exactly this version .. contents:: :depth: 2 :local: - {% if transformers|length > 0 %} Transformers changes ==================== -{% for note in transformers %}{{ note }}{% endfor %} -{% endif -%} -{% if fixes|length > 0 %} +{% for note in transformers %}{{ note }} +{% endfor %} +{% endif -%}{% if fixes|length > 0 %} Fixes ===== -{% for note in fixes %}{{ note }}{% endfor %} -{% endif -%} -{% if other|length > 0 %} - +{% for note in fixes %}{{ note }} +{% endfor %} +{% endif -%}{% if other|length > 0 %} Other features ============== -{% for note in other %}{{ note }}{% endfor %} +{% for note in other %}{{ note }} +{% endfor %} {% endif -%} \ No newline at end of file diff --git a/docs/releasenotes/unreleased/transformers.1.rst b/docs/releasenotes/unreleased/transformers.1.rst deleted file mode 100644 index 9c1d8730..00000000 --- a/docs/releasenotes/unreleased/transformers.1.rst +++ /dev/null @@ -1,16 +0,0 @@ -Ignore comments in IndentNestedKeywords transformer (#702) ----------------------------------------------------------- - -``IndentNestedKeywords`` moves comments before transformation. This is required in order to properly format different -types of the source code (especially when expanding single line to multiple lines). However as side affect -``IndentNestedKeywords`` moved the comments even if the code didn't require formatting:: - - *** Test Cases *** - Keyword with commented out single line - Run Keywords - ... No Operation - # ... No Operation - ... No Operation - -In such case the code is already formatted and does not require moving the comments. After this release such -comments will be left alone in a case where the code is already formatted. diff --git a/docs/releasenotes/unreleased/transformers.2.rst b/docs/releasenotes/unreleased/transformers.2.rst deleted file mode 100644 index c2be5dad..00000000 --- a/docs/releasenotes/unreleased/transformers.2.rst +++ /dev/null @@ -1,12 +0,0 @@ -Use variable_separator when converting variable from camelCase in RenameVariables (#705) ----------------------------------------------------------------------------------------- - -Previously ``variable_separator`` configuration was not respected when converting variable names from camelCase to -snake_case. In result variable names were converted with spaces as the separator:: - - # from - ${camelCase} - # to - ${camel case} - -Now the setting will be take into account. diff --git a/robotidy/version.py b/robotidy/version.py index 5b886240..9c8b8e07 100644 --- a/robotidy/version.py +++ b/robotidy/version.py @@ -1 +1 @@ -__version__ = "4.13.0" +__version__ = "4.14.0"