Skip to content

Commit 4892945

Browse files
committed
style: remove unnecessary noqa
1 parent 3193887 commit 4892945

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

commitizen/cz/conventional_commits/conventional_commits.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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",

commitizen/cz/jira/jira.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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]+( #| .* #).+( #.+)*"

tests/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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",

tests/test_bump_find_increment.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,14 @@
3232
MAJOR_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

3939
MAJOR_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

tests/test_cz_conventional_commits.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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\ncomplete content\n\ncloses #24" # noqa
86+
== "fix(users): email pattern corrected\n\ncomplete content\n\ncloses #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\ncomplete content\n\nBREAKING CHANGE: migrate by renaming user to users" # noqa
104+
== "fix(users): email pattern corrected\n\ncomplete content\n\nBREAKING CHANGE: migrate by renaming user to users"
105105
)
106106

107107

0 commit comments

Comments
 (0)