Skip to content

Commit b8eab23

Browse files
committed
patchtest2: use black for some cleanup again
Signed-off-by: Trevor Gamblin <[email protected]>
1 parent c8c4530 commit b8eab23

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/patchtest2/patterns.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,7 @@
3939
metadata_summary = "SUMMARY"
4040
cve_check_ignore_var = "CVE_CHECK_IGNORE"
4141
cve_status_var = "CVE_STATUS"
42-
endcommit_messages_regex = re.compile(
43-
r"\(From \w+-\w+ rev:|^---$"
44-
)
42+
endcommit_messages_regex = re.compile(r"\(From \w+-\w+ rev:|^---$")
4543
patchmetadata_regex = re.compile(r"-{3} \S+|\+{3} \S+|@{2} -\d+,\d+ \+\d+,\d+ @{2} \S+")
4644

4745
# mbox

src/patchtest2/tests/core.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def __init__(self, target_repo, series):
4545
self.results = dict(
4646
[
4747
(
48-
'mbox',
48+
"mbox",
4949
self.mbox_results,
5050
),
5151
]
@@ -66,6 +66,7 @@ def print_results(self):
6666
for category in self.results.keys():
6767
self._print_results(category)
6868

69+
6970
# test_for_pattern()
7071
# @pattern: a pyparsing regex object
7172
# @string: a string (patch subject, commit message, author, etc. to

0 commit comments

Comments
 (0)