Revert "Remove robot-tidy from pre-commit" 93/90393/5
authorThanh Ha <zxiiro@gmail.com>
Thu, 11 Jun 2020 13:28:07 +0000 (09:28 -0400)
committerThanh Ha <zxiiro@gmail.com>
Thu, 11 Jun 2020 14:05:56 +0000 (10:05 -0400)
Pin to a specific hash ID instead of 'master' to workaround failure
due to:

    "error: pathspec 'master' did not match any file(s) known to git."

Not sure why this is suddenly failing with this repo but using a
specific commit hash instead appears to resolve the issue.

This also changes the clone URL from git:// to https:// to match the
other repos in this file.

This reverts commit c300e14ebc35e94f62ebc2056fad7da81a54ab40.

JIRA: RELENG-149
Change-Id: I42a1ef3e8c347820a5a482b1b530616de75cfc27
Signed-off-by: Thanh Ha <zxiiro@gmail.com>
.pre-commit-config.yaml

index 86005cf56c95c7ddcab6a8b70eb5a15f490d8127..7fe9dce96d69263cf41b9fcd649631c1621d5946 100644 (file)
   hooks:
     - id: autopep8
 
+- repo: https://github.com/guykisel/pre-commit-robotframework-tidy
+  rev: 178d2190fa733d8f4d3f72fed9db6e75a9f65d35
+  hooks:
+  - id: robotframework-tidy-wrapper
+    additional_dependencies: ['robotframework==3.2a1']  # Pin due to tidy warning in 3.1.2
+
 - repo: https://github.com/jorisroovers/gitlint
   rev: v0.11.0
   hooks: