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):
2121 bump_pattern = defaults .BUMP_PATTERN
2222 bump_map = defaults .BUMP_MAP
2323 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>.*)?"
2525 change_type_map = {
2626 "feat" : "Feat" ,
2727 "fix" : "Fix" ,
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ def example(self) -> str:
6767 )
6868
6969 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>"
7171
7272 def schema_pattern (self ) -> str :
7373 return r".*[A-Z]{2,}\-[0-9]+( #| .* #).+( #.+)*"
Original file line number Diff line number Diff line change @@ -169,7 +169,7 @@ class SemverCommitizen(BaseCommitizen):
169169 "patch" : "PATCH" ,
170170 }
171171 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>.+)"
173173 change_type_map = {
174174 "major" : "Breaking Changes" ,
175175 "minor" : "Features" ,
Original file line number Diff line number Diff line change 3232MAJOR_INCREMENTS_BREAKING_CHANGE_CC = [
3333 "feat(cli): added version" ,
3434 "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" ,
3636 "fix(setup.py): future is now required for every python version" ,
3737]
3838
3939MAJOR_INCREMENTS_BREAKING_CHANGE_ALT_CC = [
4040 "feat(cli): added version" ,
4141 "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" ,
4343 "fix(setup.py): future is now required for every python version" ,
4444]
4545
Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ def test_long_answer(config):
8383 message = conventional_commits .message (answers )
8484 assert (
8585 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"
8787 )
8888
8989
@@ -101,7 +101,7 @@ def test_breaking_change_in_footer(config):
101101 print (message )
102102 assert (
103103 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"
105105 )
106106
107107
You can’t perform that action at this time.
0 commit comments