From a7b76919c0be7fc89fd530418a4ee6f095802750 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 1 Feb 2022 18:39:01 +0200 Subject: [PATCH] [pre-commit.ci] pre-commit autoupdate (#687) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * [pre-commit.ci] pre-commit autoupdate updates: - [github.com/psf/black: 21.12b0 → 22.1.0](https://github.com/psf/black/compare/21.12b0...22.1.0) - [github.com/asottile/reorder_python_imports: v2.6.0 → v2.7.1](https://github.com/asottile/reorder_python_imports/compare/v2.6.0...v2.7.1) - [github.com/Lucas-C/pre-commit-hooks: v1.1.10 → v1.1.11](https://github.com/Lucas-C/pre-commit-hooks/compare/v1.1.10...v1.1.11) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Antoni Ivanov --- .pre-commit-config.yaml | 6 +++--- .../internal/builtin_plugins/version/new_version_check.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) 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),