From 12638369b3e579de72c0e239c4c6100f52d017ec Mon Sep 17 00:00:00 2001
From: "Daniel W. Anner" <daniel.anner@danstechsupport.com>
Date: Fri, 5 May 2023 12:49:12 -0400
Subject: [PATCH] Dependencies updates for May 2023 (#1326)

* Dependencies updates for May 2023

* adding updates to pre-commit and validation

* updating pre-commit config
---
 .github/workflows/validation.yml |  3 +++
 .pre-commit-config.yaml          |  6 +++---
 .pre-commit-hooks-config.yaml    | 10 ++++++++++
 .pre-commit-yamlfmt-config.yaml  |  9 +--------
 requirements.txt                 |  6 +++---
 5 files changed, 20 insertions(+), 14 deletions(-)
 create mode 100644 .pre-commit-hooks-config.yaml

diff --git a/.github/workflows/validation.yml b/.github/workflows/validation.yml
index 51427735..a91fd304 100644
--- a/.github/workflows/validation.yml
+++ b/.github/workflows/validation.yml
@@ -19,6 +19,9 @@ jobs:
         run: |
           yamllint --format github --strict \
             device-types/ module-types/
+      - name: Format YAML files (hooks)
+        run: |
+          pre-commit run --config .pre-commit-hooks-config.yaml --all-files
       - name: Format YAML files (yamlfmt)
         run: |
           pre-commit run --config .pre-commit-yamlfmt-config.yaml --all-files
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 62a21519..fb5ae7a9 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -2,19 +2,19 @@
 files: ^(device-types|module-types)/
 repos:
   - repo: https://github.com/pre-commit/pre-commit-hooks
-    rev: v4.3.0
+    rev: v4.4.0
     hooks:
       - id: trailing-whitespace
       - id: end-of-file-fixer
       - id: check-yaml
         name: Check YAML files
   - repo: https://github.com/jumanjihouse/pre-commit-hook-yamlfmt
-    rev: 0.2.2
+    rev: 0.2.3
     hooks:
       - id: yamlfmt
         args: [--mapping, '2', --sequence, '4', --offset, '2']
   - repo: https://github.com/adrienverge/yamllint.git
-    rev: v1.27.1
+    rev: v1.31.0
     hooks:
       - id: yamllint
         name: Lint YAML files
diff --git a/.pre-commit-hooks-config.yaml b/.pre-commit-hooks-config.yaml
new file mode 100644
index 00000000..5c226991
--- /dev/null
+++ b/.pre-commit-hooks-config.yaml
@@ -0,0 +1,10 @@
+---
+files: ^(device-types|module-types)/
+repos:
+  - repo: https://github.com/pre-commit/pre-commit-hooks
+    rev: v4.4.0
+    hooks:
+      - id: trailing-whitespace
+      - id: end-of-file-fixer
+      - id: check-yaml
+        name: Check YAML files
\ No newline at end of file
diff --git a/.pre-commit-yamlfmt-config.yaml b/.pre-commit-yamlfmt-config.yaml
index 8441d44f..c2213559 100644
--- a/.pre-commit-yamlfmt-config.yaml
+++ b/.pre-commit-yamlfmt-config.yaml
@@ -1,15 +1,8 @@
 ---
 files: ^(device-types|module-types)/
 repos:
-  - repo: https://github.com/pre-commit/pre-commit-hooks
-    rev: v4.3.0
-    hooks:
-      - id: trailing-whitespace
-      - id: end-of-file-fixer
-      - id: check-yaml
-        name: Check YAML files
   - repo: https://github.com/jumanjihouse/pre-commit-hook-yamlfmt
-    rev: 0.2.2
+    rev: 0.2.3
     hooks:
       - id: yamlfmt
         args: [--mapping, '2', --sequence, '4', --offset, '2']
diff --git a/requirements.txt b/requirements.txt
index 2961087c..214f3799 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,5 +1,5 @@
 jsonschema==4.17.3
-pre-commit==3.2.1
-pytest==7.2.2
+pre-commit==3.2.2
+pytest==7.3.1
 PyYAML==6.0
-yamllint==1.30.0
+yamllint==1.31.0
-- 
GitLab