Chore: Update pre-commit hooks 46/70546/3
authorAndrew Grimberg <agrimberg@linuxfoundation.org>
Fri, 26 Aug 2022 18:07:40 +0000 (11:07 -0700)
committerAndrew Grimberg <agrimberg@linuxfoundation.org>
Fri, 26 Aug 2022 19:09:05 +0000 (12:09 -0700)
* github.com/pre-commit/pre-commit-hooks: v4.0.1 -> v4.3.0
* github.com/jorisroovers/gitlint: v0.15.1 -> v0.17.0
* github.com/ambv/black: 21.8b0 -> 22.6.0
* github.com/PyCQA/isort: 5.9.3 -> 5.10.1

* Update tox pre-commit environment to be py37 for base python matching
  our global minver, this is required to get pre-commit to properly
  install under tox

Issue: RELENG-4387
Change-Id: Iffaf00c6100237141140ba5524068964c406c8cc
Signed-off-by: Andrew Grimberg <agrimberg@linuxfoundation.org>
.pre-commit-config.yaml
tox.ini

index c186a3c..191a5e9 100644 (file)
@@ -5,12 +5,12 @@ repos:
   ###########
 
   - repo: https://github.com/pre-commit/pre-commit-hooks
-    rev: v4.0.1
+    rev: v4.3.0
     hooks:
       - id: trailing-whitespace
 
   - repo: https://github.com/jorisroovers/gitlint
-    rev: v0.15.1
+    rev: v0.17.0
     hooks:
       - id: gitlint
 
@@ -19,12 +19,12 @@ repos:
   ##########
 
   - repo: https://github.com/ambv/black
-    rev: 21.8b0
+    rev: 22.6.0
     hooks:
     - id: black
 
   - repo: https://github.com/PyCQA/isort
-    rev: 5.9.3
+    rev: 5.10.1
     hooks:
       - id: isort
 
diff --git a/tox.ini b/tox.ini
index 3e93c09..6b7e1e1 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -53,7 +53,7 @@ commands =
 
 [testenv:pre-commit]
 description = Precommit checks for black, gitlint, etc.
-basepython = python3
+basepython = python3.7
 allowlist_externals =
     /bin/sh
 deps =