We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4e23d00 + 974de65 commit e2e928fCopy full SHA for e2e928f
commitizen/changelog_formats/__init__.py
@@ -1,8 +1,12 @@
1
from __future__ import annotations
2
3
+import sys
4
from typing import ClassVar, Protocol
5
-import importlib_metadata as metadata
6
+if sys.version_info >= (3, 10):
7
+ from importlib import metadata
8
+else:
9
+ import importlib_metadata as metadata
10
11
from commitizen.changelog import Metadata
12
from commitizen.config.base_config import BaseConfig
commitizen/cz/__init__.py
@@ -2,10 +2,14 @@
import importlib
import pkgutil
import warnings
from typing import Iterable
13
14
from commitizen.cz.base import BaseCommitizen
15
commitizen/providers/__init__.py
from typing import cast
from commitizen.exceptions import VersionProviderUnknown
commitizen/version_schemes.py
@@ -15,7 +15,11 @@
runtime_checkable,
16
)
17
18
19
20
21
22
+
23
from packaging.version import InvalidVersion # noqa: F401: Rexpose the common exception
24
from packaging.version import Version as _BaseVersion
25
poetry.lock
pyproject.toml
@@ -47,11 +47,11 @@ packaging = ">=19"
47
tomlkit = ">=0.5.3,<1.0.0"
48
jinja2 = ">=2.10.3"
49
pyyaml = ">=3.08"
50
-argcomplete = ">=1.12.1,<3.4"
+argcomplete = ">=1.12.1,<3.5"
51
typing-extensions = { version = "^4.0.1", python = "<3.8" }
52
charset-normalizer = ">=2.1.0,<4"
53
# Use the Python 3.11 and 3.12 compatible API: https://github.com/python/importlib_metadata#compatibility
54
-importlib_metadata = { version = ">=4.13,<8"}
+importlib_metadata = { version = ">=8.0.0,<9", python = "<3.10"}
55
56
[tool.poetry.group.dev.dependencies]
57
# dev tool
@@ -64,7 +64,7 @@ pytest-regressions = "^2.4.0"
64
pytest-freezer = "^0.4.6"
65
pytest-xdist = "^3.1.0"
66
# linter
67
-ruff = ">=0.1.6,<0.5.0"
+ruff = ">=0.5.0,<0.6.0"
68
pre-commit = ">=2.18,<4.0"
69
mypy = "^1.4"
70
types-PyYAML = ">=5.4.3,<7.0.0"
tests/test_cli.py
@@ -88,7 +88,7 @@ def test_commitizen_excepthook(capsys):
88
with pytest.raises(SystemExit) as excinfo:
89
cli.commitizen_excepthook(NotAGitProjectError, NotAGitProjectError(), "")
90
91
- assert excinfo.type == SystemExit
+ assert excinfo.type is SystemExit
92
assert excinfo.value.code == NotAGitProjectError.exit_code
93
94
@@ -101,7 +101,7 @@ def test_commitizen_debug_excepthook(capsys):
101
debug=True,
102
103
104
105
106
assert "NotAGitProjectError" in str(excinfo.traceback[0])
107
@@ -132,7 +132,7 @@ def test_commitizen_excepthook_no_raises(capsys):
132
no_raise=[NotAGitProjectError.exit_code],
133
134
135
136
assert excinfo.value.code == 0
137
138
tests/test_factory.py
@@ -1,7 +1,11 @@
import sys
from textwrap import dedent
import pytest
from commitizen import BaseCommitizen, defaults, factory
tests/test_version_schemes.py
@@ -1,6 +1,12 @@
from pytest_mock import MockerFixture
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments