Skip to content

Commit 347aee8

Browse files
committed
Comments, updates, contributor
1 parent edc7319 commit 347aee8

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

CHANGES.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ Changelog
66

77
- check-manifest was missing from the requirements list.
88

9+
- Passing in multiple tests to be skipped now actually works [Matt Norton]
10+
911

1012
5.0 (2025-07-15)
1113
----------------

README.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,3 +132,4 @@ Contributors:
132132
* RuRo
133133
* Wesley Barroso Lopes
134134
* Alexander Bessman
135+
* Matt Norton

pyroma/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ def parse_tests(arg):
4747
if not arg:
4848
return
4949

50+
# Split on spaces, commas and semicolons
5051
arg = [arg]
5152
for sep in " ,;":
5253
skips = []
@@ -57,6 +58,7 @@ def parse_tests(arg):
5758
tests = get_all_tests()
5859
for skip in arg:
5960
if skip not in tests:
61+
# Invalid test mentioned, fail and print valid tests
6062
return
6163

6264
return arg
@@ -67,6 +69,7 @@ def skip_tests(arg):
6769
if test_to_skip:
6870
return test_to_skip
6971

72+
# It returned None, so there was an invalid test mentioned, or none at all
7073
tests = ", ".join(get_all_tests())
7174
message = f"Invalid tests listed. Available tests: {tests}"
7275
raise ArgumentTypeError(message)

0 commit comments

Comments
 (0)