File tree Expand file tree Collapse file tree 5 files changed +7
-7
lines changed Expand file tree Collapse file tree 5 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ class ConventionalCommitsCz(BaseCommitizen):
21
21
bump_pattern = defaults .BUMP_PATTERN
22
22
bump_map = defaults .BUMP_MAP
23
23
bump_map_major_version_zero = defaults .BUMP_MAP_MAJOR_VERSION_ZERO
24
- commit_parser = r"^((?P<change_type>feat|fix|refactor|perf|BREAKING CHANGE)(?:\((?P<scope>[^()\r\n]*)\)|\()?(?P<breaking>!)?|\w+!):\s(?P<message>.*)?" # noqa
24
+ commit_parser = r"^((?P<change_type>feat|fix|refactor|perf|BREAKING CHANGE)(?:\((?P<scope>[^()\r\n]*)\)|\()?(?P<breaking>!)?|\w+!):\s(?P<message>.*)?"
25
25
change_type_map = {
26
26
"feat" : "Feat" ,
27
27
"fix" : "Fix" ,
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ def example(self) -> str:
67
67
)
68
68
69
69
def schema (self ) -> str :
70
- return "<ignored text> <ISSUE_KEY> <ignored text> #<COMMAND> <optional COMMAND_ARGUMENTS>" # noqa
70
+ return "<ignored text> <ISSUE_KEY> <ignored text> #<COMMAND> <optional COMMAND_ARGUMENTS>"
71
71
72
72
def schema_pattern (self ) -> str :
73
73
return r".*[A-Z]{2,}\-[0-9]+( #| .* #).+( #.+)*"
Original file line number Diff line number Diff line change @@ -169,7 +169,7 @@ class SemverCommitizen(BaseCommitizen):
169
169
"patch" : "PATCH" ,
170
170
}
171
171
changelog_pattern = r"^(patch|minor|major)"
172
- commit_parser = r"^(?P<change_type>patch|minor|major)(?:\((?P<scope>[^()\r\n]*)\)|\()?:?\s(?P<message>.+)" # noqa
172
+ commit_parser = r"^(?P<change_type>patch|minor|major)(?:\((?P<scope>[^()\r\n]*)\)|\()?:?\s(?P<message>.+)"
173
173
change_type_map = {
174
174
"major" : "Breaking Changes" ,
175
175
"minor" : "Features" ,
Original file line number Diff line number Diff line change 32
32
MAJOR_INCREMENTS_BREAKING_CHANGE_CC = [
33
33
"feat(cli): added version" ,
34
34
"docs(README): motivation" ,
35
- "BREAKING CHANGE: `extends` key in config file is now used for extending other config files" , # noqa
35
+ "BREAKING CHANGE: `extends` key in config file is now used for extending other config files" ,
36
36
"fix(setup.py): future is now required for every python version" ,
37
37
]
38
38
39
39
MAJOR_INCREMENTS_BREAKING_CHANGE_ALT_CC = [
40
40
"feat(cli): added version" ,
41
41
"docs(README): motivation" ,
42
- "BREAKING-CHANGE: `extends` key in config file is now used for extending other config files" , # noqa
42
+ "BREAKING-CHANGE: `extends` key in config file is now used for extending other config files" ,
43
43
"fix(setup.py): future is now required for every python version" ,
44
44
]
45
45
Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ def test_long_answer(config):
83
83
message = conventional_commits .message (answers )
84
84
assert (
85
85
message
86
- == "fix(users): email pattern corrected\n \n complete content\n \n closes #24" # noqa
86
+ == "fix(users): email pattern corrected\n \n complete content\n \n closes #24"
87
87
)
88
88
89
89
@@ -101,7 +101,7 @@ def test_breaking_change_in_footer(config):
101
101
print (message )
102
102
assert (
103
103
message
104
- == "fix(users): email pattern corrected\n \n complete content\n \n BREAKING CHANGE: migrate by renaming user to users" # noqa
104
+ == "fix(users): email pattern corrected\n \n complete content\n \n BREAKING CHANGE: migrate by renaming user to users"
105
105
)
106
106
107
107
You can’t perform that action at this time.
0 commit comments