Skip to content

Commit 3b854a7

Browse files
author
Serpa
authored
Merge pull request #2 from engineai-dev/EPFR-66-add-monorepos-support
2 parents 33bdb69 + 6db259f commit 3b854a7

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

commitizen/version_schemes.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,12 @@
44
import sys
55
import warnings
66
from itertools import zip_longest
7-
from typing import TYPE_CHECKING, ClassVar, Protocol, Type, cast, runtime_checkable
7+
from typing import (TYPE_CHECKING, ClassVar, Protocol, Type, cast,
8+
runtime_checkable)
89

910
import importlib_metadata as metadata
10-
from packaging.version import InvalidVersion # noqa: F401: Rexpose the common exception
11+
from packaging.version import \
12+
InvalidVersion # noqa: F401: Rexpose the common exception
1113
from packaging.version import Version as _BaseVersion
1214

1315
from commitizen.config.base_config import BaseConfig
@@ -28,7 +30,7 @@
2830
from typing import Self
2931

3032

31-
DEFAULT_VERSION_PARSER = r"v?(?P<version>([0-9]+)\.([0-9]+)\.([0-9]+)(?:-([0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*))?(?:\+[0-9A-Za-z-]+)?(\w+)?)"
33+
DEFAULT_VERSION_PARSER = r"(?P<version>([0-9]+)\.([0-9]+)\.([0-9]+)(?:-([0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*))?(?:\+[0-9A-Za-z-]+)?(\w+)?)"
3234

3335

3436
@runtime_checkable

0 commit comments

Comments
 (0)