Replace robotframework-tidy-wrapper with robotidy 49/102349/9
authorSangwook Ha <sangwook.ha@verizon.com>
Fri, 9 Sep 2022 23:30:17 +0000 (16:30 -0700)
committerSangwook Ha <sangwook.ha@verizon.com>
Fri, 7 Oct 2022 04:03:16 +0000 (21:03 -0700)
Built-in Robotframework Tidy tool has been deprecated and the pre-commit
hook (robotframework-tidy-wrapper) based on the tool has not been
updated for more than 2 years.

Replace the pre-commit hook with robotidy as recommended.

JIRA: INTTEST-132
Change-Id: I94f26ec87513c504f878069b787cdc0c6a6e34e6
Signed-off-by: Sangwook Ha <sangwook.ha@verizon.com>
.pre-commit-config.yaml

index da11a941a13599fcd6ff712a15b3c2c239240008..4e69cef54266cf2cceafe838b102ad00dceed845 100644 (file)
@@ -18,13 +18,11 @@ repos:
     hooks:
       - id: black
 
-  # FIXME: replace pre-commit-robotframework-tidy with robotidy once Python 3.7 is available
-  # https://github.com/MarketSquare/robotframework-tidy
-  # - repo: https://github.com/guykisel/pre-commit-robotframework-tidy
-  #  rev: master
-  #  hooks:
-  #  - id: robotframework-tidy-wrapper
-  #    additional_dependencies: ['robotframework~=4.1.0']
+  - repo: https://github.com/MarketSquare/robotframework-tidy
+    rev: 3.2.0
+    hooks:
+    - id: robotidy
+      additional_dependencies: ['robotframework']
 
   - repo: https://github.com/jorisroovers/gitlint
     rev: v0.17.0