Skip to content

Commit

Permalink
patchtest2: use black for some cleanup again
Browse files Browse the repository at this point in the history
Signed-off-by: Trevor Gamblin <[email protected]>
  • Loading branch information
threexc committed Jan 31, 2025
1 parent c8c4530 commit b8eab23
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 1 addition & 3 deletions src/patchtest2/patterns.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,7 @@
metadata_summary = "SUMMARY"
cve_check_ignore_var = "CVE_CHECK_IGNORE"
cve_status_var = "CVE_STATUS"
endcommit_messages_regex = re.compile(
r"\(From \w+-\w+ rev:|^---$"
)
endcommit_messages_regex = re.compile(r"\(From \w+-\w+ rev:|^---$")
patchmetadata_regex = re.compile(r"-{3} \S+|\+{3} \S+|@{2} -\d+,\d+ \+\d+,\d+ @{2} \S+")

# mbox
Expand Down
3 changes: 2 additions & 1 deletion src/patchtest2/tests/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def __init__(self, target_repo, series):
self.results = dict(
[
(
'mbox',
"mbox",
self.mbox_results,
),
]
Expand All @@ -66,6 +66,7 @@ def print_results(self):
for category in self.results.keys():
self._print_results(category)


# test_for_pattern()
# @pattern: a pyparsing regex object
# @string: a string (patch subject, commit message, author, etc. to
Expand Down

0 comments on commit b8eab23

Please sign in to comment.