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