@@ -60,8 +60,7 @@ class Settings(TypedDict, total=False):
6060 extras : dict [str , Any ]
6161
6262
63- name : str = "cz_conventional_commits"
64- config_files : list [str ] = [
63+ CONFIG_FILES : list [str ] = [
6564 "pyproject.toml" ,
6665 ".cz.toml" ,
6766 ".cz.json" ,
@@ -70,10 +69,10 @@ class Settings(TypedDict, total=False):
7069 "cz.yaml" ,
7170 "cz.toml" ,
7271]
73- encoding : str = "utf-8"
72+ ENCODING = "utf-8"
7473
7574DEFAULT_SETTINGS : Settings = {
76- "name" : name ,
75+ "name" : "cz_conventional_commits" ,
7776 "version" : None ,
7877 "version_files" : [],
7978 "version_provider" : "commitizen" ,
@@ -102,7 +101,7 @@ class Settings(TypedDict, total=False):
102101 "pre_bump_hooks" : [],
103102 "post_bump_hooks" : [],
104103 "prerelease_offset" : 0 ,
105- "encoding" : encoding ,
104+ "encoding" : ENCODING ,
106105 "always_signoff" : False ,
107106 "template" : None , # default provided by plugin
108107 "extras" : {},
@@ -114,8 +113,8 @@ class Settings(TypedDict, total=False):
114113
115114CHANGELOG_FORMAT = "markdown"
116115
117- bump_pattern = r"^((BREAKING[\-\ ]CHANGE|\w+)(\(.+\))?!?):"
118- bump_map = OrderedDict (
116+ BUMP_PATTERN = r"^((BREAKING[\-\ ]CHANGE|\w+)(\(.+\))?!?):"
117+ BUMP_MAP = OrderedDict (
119118 (
120119 (r"^.+!$" , MAJOR ),
121120 (r"^BREAKING[\-\ ]CHANGE" , MAJOR ),
@@ -125,7 +124,7 @@ class Settings(TypedDict, total=False):
125124 (r"^perf" , PATCH ),
126125 )
127126)
128- bump_map_major_version_zero = OrderedDict (
127+ BUMP_MAP_MAJOR_VERSION_ZERO = OrderedDict (
129128 (
130129 (r"^.+!$" , MINOR ),
131130 (r"^BREAKING[\-\ ]CHANGE" , MINOR ),
@@ -135,8 +134,8 @@ class Settings(TypedDict, total=False):
135134 (r"^perf" , PATCH ),
136135 )
137136)
138- change_type_order = ["BREAKING CHANGE" , "Feat" , "Fix" , "Refactor" , "Perf" ]
139- bump_message = "bump: version $current_version → $new_version"
137+ CHANGE_TYPE_ORDER = ["BREAKING CHANGE" , "Feat" , "Fix" , "Refactor" , "Perf" ]
138+ BUMP_MESSAGE = "bump: version $current_version → $new_version"
140139
141140
142141def get_tag_regexes (
0 commit comments