Update pre-commit hook versions

Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
This commit is contained in:
Pedro Algarvio 2022-07-20 13:46:13 +01:00 committed by Megan Wilhite
parent 4d49013247
commit 59ef42aa9e
2 changed files with 12 additions and 14 deletions

View file

@ -4,7 +4,7 @@ default_language_version:
exclude: ^(doc/_static/.*|doc/_themes/.*)$ exclude: ^(doc/_static/.*|doc/_themes/.*)$
repos: repos:
- repo: https://github.com/saltstack/pip-tools-compile-impersonate - repo: https://github.com/saltstack/pip-tools-compile-impersonate
rev: "4.4" rev: "4.5"
hooks: hooks:
# ----- Packaging Requirements ------------------------------------------------------------------------------------> # ----- Packaging Requirements ------------------------------------------------------------------------------------>
@ -1106,7 +1106,7 @@ repos:
# ----- Code Formatting -------------------------------------------------------------------------------------------> # ----- Code Formatting ------------------------------------------------------------------------------------------->
- repo: https://github.com/asottile/pyupgrade - repo: https://github.com/asottile/pyupgrade
rev: v2.31.0 rev: v2.37.2
hooks: hooks:
- id: pyupgrade - id: pyupgrade
name: Drop six usage and Py2 support name: Drop six usage and Py2 support
@ -1124,7 +1124,7 @@ repos:
- repo: https://github.com/s0undt3ch/salt-rewrite - repo: https://github.com/s0undt3ch/salt-rewrite
# Automatically rewrite code with known rules # Automatically rewrite code with known rules
rev: 1.3.2 rev: 2.0.0
hooks: hooks:
- id: salt-rewrite - id: salt-rewrite
alias: rewrite-docstrings alias: rewrite-docstrings
@ -1138,7 +1138,7 @@ repos:
- repo: https://github.com/s0undt3ch/salt-rewrite - repo: https://github.com/s0undt3ch/salt-rewrite
# Automatically rewrite code with known rules # Automatically rewrite code with known rules
rev: 1.3.2 rev: 2.0.0
hooks: hooks:
- id: salt-rewrite - id: salt-rewrite
alias: rewrite-tests alias: rewrite-tests
@ -1161,7 +1161,7 @@ repos:
)$ )$
- repo: https://github.com/psf/black - repo: https://github.com/psf/black
rev: 21.7b0 rev: 22.6.0
hooks: hooks:
- id: black - id: black
# This tells pre-commit not to pass files to black. # This tells pre-commit not to pass files to black.
@ -1172,24 +1172,21 @@ repos:
salt/ext/.*| salt/ext/.*|
tests/kitchen/.* tests/kitchen/.*
)$ )$
additional_dependencies:
- click<8.1.0
- repo: https://github.com/asottile/blacken-docs - repo: https://github.com/asottile/blacken-docs
rev: v1.10.0 rev: v1.12.1
hooks: hooks:
- id: blacken-docs - id: blacken-docs
args: [--skip-errors] args: [--skip-errors]
files: ^doc/.*\.rst files: ^doc/.*\.rst
additional_dependencies: additional_dependencies:
- click<8.1.0 - black==22.6.0
- black==21.7b0
# <---- Code Formatting -------------------------------------------------------------------------------------------- # <---- Code Formatting --------------------------------------------------------------------------------------------
# ----- Security --------------------------------------------------------------------------------------------------> # ----- Security -------------------------------------------------------------------------------------------------->
- repo: https://github.com/PyCQA/bandit - repo: https://github.com/PyCQA/bandit
rev: "1.7.0" rev: "1.7.4"
hooks: hooks:
- id: bandit - id: bandit
alias: bandit-salt alias: bandit-salt
@ -1202,7 +1199,7 @@ repos:
tests/.* tests/.*
)$ )$
- repo: https://github.com/PyCQA/bandit - repo: https://github.com/PyCQA/bandit
rev: "1.7.0" rev: "1.7.4"
hooks: hooks:
- id: bandit - id: bandit
alias: bandit-tests alias: bandit-tests
@ -1312,7 +1309,7 @@ repos:
- msgpack==1.0.3 - msgpack==1.0.3
- repo: https://github.com/saltstack/mirrors-nox - repo: https://github.com/saltstack/mirrors-nox
rev: v2020.8.22 rev: v2021.6.12
hooks: hooks:
- id: nox - id: nox
alias: lint-salt alias: lint-salt
@ -1332,7 +1329,7 @@ repos:
- pip>=20.2.4,<21.2 - pip>=20.2.4,<21.2
- repo: https://github.com/saltstack/mirrors-nox - repo: https://github.com/saltstack/mirrors-nox
rev: v2020.8.22 rev: v2021.6.12
hooks: hooks:
- id: nox - id: nox
alias: lint-tests alias: lint-tests

View file

@ -1,6 +1,7 @@
import logging import logging
import pytest import pytest
import salt.config import salt.config
import salt.renderers.pyobjects as pyobjects import salt.renderers.pyobjects as pyobjects
from salt.utils.odict import OrderedDict from salt.utils.odict import OrderedDict