diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ff10650c1e..5c358a26fd 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -16,7 +16,7 @@ repos: - id: trailing-whitespace - id: check-executables-have-shebangs - repo: https://github.com/psf/black - rev: 21.12b0 + rev: 22.1.0 hooks: - id: black language_version: python3.7 @@ -39,7 +39,7 @@ repos: # - id: mypy # files: ^(src/|tests/|plugins/) - repo: https://github.com/asottile/reorder_python_imports - rev: v2.6.0 + rev: v2.7.1 hooks: - id: reorder-python-imports args: [--py37-plus, '--application-directories=.:src'] @@ -58,7 +58,7 @@ repos: # args: [ -s, B101 ] # add copyright notice - repo: https://github.com/Lucas-C/pre-commit-hooks - rev: v1.1.10 + rev: v1.1.11 hooks: - id: insert-license files: \.java$ diff --git a/projects/vdk-core/src/vdk/internal/builtin_plugins/version/new_version_check.py b/projects/vdk-core/src/vdk/internal/builtin_plugins/version/new_version_check.py index 976e57e1b8..69a0c0df0e 100644 --- a/projects/vdk-core/src/vdk/internal/builtin_plugins/version/new_version_check.py +++ b/projects/vdk-core/src/vdk/internal/builtin_plugins/version/new_version_check.py @@ -67,7 +67,7 @@ def _get_highest_version_from_index(self) -> tuple: ) return (-1,) - pattr = fr">{self.pkg}-(.+?)<" + pattr = rf">{self.pkg}-(.+?)<" versions = map( self._ver_to_tuple, re.findall(pattr, response.read().decode("utf-8"), flags=re.I),