@@ -62,8 +62,7 @@ class Settings(TypedDict, total=False):
62
62
extras : dict [str , Any ]
63
63
64
64
65
- name : str = "cz_conventional_commits"
66
- config_files : list [str ] = [
65
+ CONFIG_FILES : list [str ] = [
67
66
"pyproject.toml" ,
68
67
".cz.toml" ,
69
68
".cz.json" ,
@@ -72,10 +71,10 @@ class Settings(TypedDict, total=False):
72
71
"cz.yaml" ,
73
72
"cz.toml" ,
74
73
]
75
- encoding : str = "utf-8"
74
+ ENCODING = "utf-8"
76
75
77
76
DEFAULT_SETTINGS : Settings = {
78
- "name" : name ,
77
+ "name" : "cz_conventional_commits" ,
79
78
"version" : None ,
80
79
"version_files" : [],
81
80
"version_provider" : "commitizen" ,
@@ -104,7 +103,7 @@ class Settings(TypedDict, total=False):
104
103
"pre_bump_hooks" : [],
105
104
"post_bump_hooks" : [],
106
105
"prerelease_offset" : 0 ,
107
- "encoding" : encoding ,
106
+ "encoding" : ENCODING ,
108
107
"always_signoff" : False ,
109
108
"template" : None , # default provided by plugin
110
109
"extras" : {},
@@ -113,7 +112,7 @@ class Settings(TypedDict, total=False):
113
112
CHANGELOG_FORMAT = "markdown"
114
113
115
114
BUMP_PATTERN = r"^((BREAKING[\-\ ]CHANGE|\w+)(\(.+\))?!?):"
116
- BUMP_MAP = dict (
115
+ BUMP_MAP = OrderedDict (
117
116
(
118
117
(r"^.+!$" , str (SemVerIncrement .MAJOR )),
119
118
(r"^BREAKING[\-\ ]CHANGE" , str (SemVerIncrement .MAJOR )),
@@ -123,7 +122,7 @@ class Settings(TypedDict, total=False):
123
122
(r"^perf" , str (SemVerIncrement .PATCH )),
124
123
)
125
124
)
126
- BUMP_MAP_MAJOR_VERSION_ZERO = dict (
125
+ BUMP_MAP_MAJOR_VERSION_ZERO = OrderedDict (
127
126
(
128
127
(r"^.+!$" , str (SemVerIncrement .MINOR )),
129
128
(r"^BREAKING[\-\ ]CHANGE" , str (SemVerIncrement .MINOR )),
@@ -133,8 +132,8 @@ class Settings(TypedDict, total=False):
133
132
(r"^perf" , str (SemVerIncrement .PATCH )),
134
133
)
135
134
)
136
- change_type_order = ["BREAKING CHANGE" , "Feat" , "Fix" , "Refactor" , "Perf" ]
137
- bump_message = "bump: version $current_version → $new_version"
135
+ CHANGE_TYPE_ORDER = ["BREAKING CHANGE" , "Feat" , "Fix" , "Refactor" , "Perf" ]
136
+ BUMP_MESSAGE = "bump: version $current_version → $new_version"
138
137
139
138
140
139
def get_tag_regexes (
0 commit comments