From 462f677dd9b0bffcd60c458cd83c0f4cacdfbb3f Mon Sep 17 00:00:00 2001 From: Sangwook Ha Date: Fri, 9 Sep 2022 16:30:17 -0700 Subject: [PATCH] Replace robotframework-tidy-wrapper with robotidy 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 --- .pre-commit-config.yaml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index da11a941a1..4e69cef542 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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 -- 2.36.6