Skip to content

Commit 866101a

Browse files
Merge branch 'master' into feature/custom-validation
2 parents ff7eee5 + 26152c5 commit 866101a

File tree

17 files changed

+518
-557
lines changed

17 files changed

+518
-557
lines changed

.github/workflows/pythonpackage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jobs:
66
python-check:
77
strategy:
88
matrix:
9-
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
9+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
1010
platform: [ubuntu-20.04, macos-latest, windows-latest]
1111
runs-on: ${{ matrix.platform }}
1212
steps:

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ repos:
4949
- tomli
5050

5151
- repo: https://github.com/commitizen-tools/commitizen
52-
rev: v3.31.0 # automatically updated by Commitizen
52+
rev: v4.0.0 # automatically updated by Commitizen
5353
hooks:
5454
- id: commitizen
5555
- id: commitizen-branch

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
## v4.0.0 (2024-11-26)
2+
13
## v3.31.0 (2024-11-16)
24

35
### Feat

commitizen/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "3.31.0"
1+
__version__ = "4.0.0"

commitizen/changelog.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,10 @@
2929

3030
import re
3131
from collections import OrderedDict, defaultdict
32+
from collections.abc import Iterable
3233
from dataclasses import dataclass
3334
from datetime import date
34-
from typing import TYPE_CHECKING, Iterable
35+
from typing import TYPE_CHECKING
3536

3637
from jinja2 import (
3738
BaseLoader,

commitizen/changelog_formats/restructuredtext.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import re
44
import sys
55
from itertools import zip_longest
6-
from typing import IO, TYPE_CHECKING, Any, Tuple, Union
6+
from typing import IO, TYPE_CHECKING, Any, Union
77

88
from commitizen.changelog import Metadata
99

@@ -18,7 +18,7 @@
1818

1919

2020
# Can't use `|` operator and native type because of https://bugs.python.org/issue42233 only fixed in 3.10
21-
TitleKind: TypeAlias = Union[str, Tuple[str, str]]
21+
TitleKind: TypeAlias = Union[str, tuple[str, str]]
2222

2323

2424
class RestructuredText(BaseFormat):

commitizen/cli.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,12 @@
33
import argparse
44
import logging
55
import sys
6+
from collections.abc import Sequence
67
from copy import deepcopy
78
from functools import partial
89
from pathlib import Path
910
from types import TracebackType
10-
from typing import Any, Sequence
11+
from typing import Any
1112

1213
import argcomplete
1314
from decli import cli

commitizen/cz/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import pkgutil
55
import sys
66
import warnings
7-
from typing import Iterable
7+
from collections.abc import Iterable
88

99
if sys.version_info >= (3, 10):
1010
from importlib import metadata

commitizen/cz/base.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22

33
import re
44
from abc import ABCMeta, abstractmethod
5-
from typing import Any, Callable, Iterable, NamedTuple, Protocol
5+
from collections.abc import Iterable
6+
from typing import Any, Callable, NamedTuple, Protocol
67

78
from jinja2 import BaseLoader, PackageLoader
89
from prompt_toolkit.styles import Style, merge_styles

commitizen/defaults.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22

33
import pathlib
44
from collections import OrderedDict
5-
from typing import Any, Iterable, MutableMapping, TypedDict
5+
from collections.abc import Iterable, MutableMapping
6+
from typing import Any, TypedDict
67

78
# Type
89
Questions = Iterable[MutableMapping[str, Any]]

0 commit comments

Comments
 (0)