From 15d6336da59f0236953301eca6833b2ba1eaadf8 Mon Sep 17 00:00:00 2001
From: Adar Nimrod <nimrod@shore.co.il>
Date: Thu, 28 Apr 2022 11:48:04 +0300
Subject: [PATCH] pre-commit updates and additions.

Add a bunch of Python hooks and update the existing hooks.
---
 .config/git/skel/.pre-commit-config.yaml | 56 ++++++++++++++++++------
 1 file changed, 42 insertions(+), 14 deletions(-)

diff --git a/.config/git/skel/.pre-commit-config.yaml b/.config/git/skel/.pre-commit-config.yaml
index 3e1c429..0b73f2d 100644
--- a/.config/git/skel/.pre-commit-config.yaml
+++ b/.config/git/skel/.pre-commit-config.yaml
@@ -1,7 +1,7 @@
 ---
 repos:
   - repo: https://github.com/pre-commit/pre-commit-hooks.git
-    rev: v4.0.1
+    rev: v4.2.0
     hooks:
       - id: check-added-large-files
       - id: check-executables-have-shebangs
@@ -10,6 +10,8 @@ repos:
       - id: check-shebang-scripts-are-executable
       - id: check-symlinks
       - id: check-toml
+      - id: check-toml
+        files: Pipfile
       - id: check-xml
       - id: check-yaml
       - id: detect-private-key
@@ -23,7 +25,7 @@ repos:
       - id: codespell
 
   - repo: https://github.com/Yelp/detect-secrets.git
-    rev: v1.1.0
+    rev: v1.2.0
     hooks:
       - id: detect-secrets
 
@@ -35,7 +37,7 @@ repos:
         exclude: LICENSE
 
   - repo: https://gitlab.com/devopshq/gitlab-ci-linter.git
-    rev: v1.0.2
+    rev: v1.0.3
     hooks:
       - id: gitlab-ci-linter
         args:
@@ -53,22 +55,22 @@ repos:
       - id: yamllint
 
   - repo: https://github.com/executablebooks/mdformat.git
-    rev: 0.7.10
+    rev: 0.7.14
     hooks:
       - id: mdformat
 
   - repo: https://github.com/shellcheck-py/shellcheck-py.git
-    rev: v0.7.2.1
+    rev: v0.8.0.4
     hooks:
       - id: shellcheck
 
   - repo: https://github.com/pre-commit/pre-commit.git
-    rev: v2.15.0
+    rev: v2.18.1
     hooks:
       - id: validate_manifest
 
   - repo: https://git.shore.co.il/nimrod/pre-commit-hooks.git
-    rev: v0.2.0
+    rev: v0.3.0
     hooks:
       - id: shell-validate
       - id: ansible-syntax-check
@@ -78,17 +80,17 @@ repos:
       - id: docker-compose
 
   - repo: https://github.com/bridgecrewio/checkov.git
-    rev: 2.0.708
+    rev: 2.0.1091
     hooks:
       - id: checkov
 
   - repo: https://github.com/ansible/ansible-lint.git
-    rev: v5.2.1
+    rev: v6.0.2
     hooks:
       - id: ansible-lint
 
   - repo: https://github.com/AleksaC/hadolint-py.git
-    rev: v2.8.0
+    rev: v2.10.0
     hooks:
       - id: hadolint
 
@@ -98,12 +100,12 @@ repos:
       - id: rst-linter
 
   - repo: https://github.com/myint/rstcheck.git
-    rev: master
+    rev: v5.0.0
     hooks:
       - id: rstcheck
 
   - repo: https://github.com/ambv/black.git
-    rev: 21.10b0
+    rev: 22.3.0
     hooks:
       - id: black
         args:
@@ -117,7 +119,7 @@ repos:
         args: ["--filter-files", "--profile", "black"]
 
   - repo: https://github.com/PyCQA/prospector.git
-    rev: 1.6.0
+    rev: 1.7.7
     hooks:
       - id: prospector
         args:
@@ -152,8 +154,34 @@ repos:
             --doctests
         additional_dependencies:
           - flake8-bugbear
+          - flake8-builtins
+          - flake8-comprehensions
+          - flake8-loopy
+          - flake8-pie
+          - flake8-tuple
+          - flake8-warnings
+
+  - repo: https://github.com/Lucas-C/pre-commit-hooks-safety.git
+    rev: v1.2.4
+    hooks:
+      - id: python-safety-dependencies-check
+
+  - repo: https://github.com/asottile/pyupgrade.git
+    rev: v2.32.0
+    hooks:
+      - id: pyupgrade
+
+  - repo: https://github.com/pycqa/pydocstyle.git
+    rev: 6.1.1
+    hooks:
+      - id: pydocstyle
+
+  - repo: https://github.com/PyCQA/docformatter.git
+    rev: v1.4
+    hooks:
+      - id: docformatter
 
   - repo: https://github.com/mgedmin/check-manifest.git
-    rev: '0.47'
+    rev: '0.48'
     hooks:
       - id: check-manifest
-- 
GitLab