From 08b335047aa0b72a99957160b8f045a9ddd39a86 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 6 Dec 2021 21:12:28 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/psf/black: stable → 21.12b0](https://github.com/psf/black/compare/stable...21.12b0) - https://gitlab.com/pycqa/flake8 → https://github.com/PyCQA/flake8 - [github.com/PyCQA/flake8: 3.7.8 → 4.0.1](https://github.com/PyCQA/flake8/compare/3.7.8...4.0.1) - https://github.com/pre-commit/mirrors-isort → https://github.com/PyCQA/isort - [github.com/PyCQA/isort: v4.3.21 → 5.10.1](https://github.com/PyCQA/isort/compare/v4.3.21...5.10.1) - [github.com/pre-commit/pre-commit-hooks: v2.3.0 → v4.0.1](https://github.com/pre-commit/pre-commit-hooks/compare/v2.3.0...v4.0.1) --- .pre-commit-config.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 56aa236..1492e83 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,23 +1,23 @@ repos: - repo: https://github.com/psf/black - rev: stable + rev: 21.12b0 hooks: - id: black - - repo: https://gitlab.com/pycqa/flake8 - rev: 3.7.8 + - repo: https://github.com/PyCQA/flake8 + rev: 4.0.1 hooks: - id: flake8 - - repo: https://github.com/pre-commit/mirrors-isort - rev: v4.3.21 + - repo: https://github.com/PyCQA/isort + rev: 5.10.1 hooks: - id: isort additional_dependencies: [toml] exclude: ^.*/?setup\.py$ - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v2.3.0 + rev: v4.0.1 hooks: - id: trailing-whitespace - id: end-of-file-fixer From 3e579b3cd15138a0f2f9293608d729b1f7b1f012 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 6 Dec 2021 21:12:44 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- semver/patterns.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/semver/patterns.py b/semver/patterns.py index 63cce54..0a85faf 100644 --- a/semver/patterns.py +++ b/semver/patterns.py @@ -7,8 +7,8 @@ r"([+-]?([0-9A-Za-z-]+(\.[0-9A-Za-z-]+)*))?" ) -_COMPLETE_VERSION = r"v?(\d+)(?:\.(\d+))?(?:\.(\d+))?(?:\.(\d+))?{}(?:\+[^\s]+)?".format( - MODIFIERS +_COMPLETE_VERSION = ( + r"v?(\d+)(?:\.(\d+))?(?:\.(\d+))?(?:\.(\d+))?{}(?:\+[^\s]+)?".format(MODIFIERS) ) COMPLETE_VERSION = re.compile("(?i)" + _COMPLETE_VERSION)