Skip to content

Commit c82881b

Browse files
authored
Add missing spaces and fullstops to error messages (#535)
2 parents cc19a3b + 64b7674 commit c82881b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/pypistats/cli.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ def _define_format(args: argparse.Namespace) -> str:
167167
def _python_major_version(value: Any) -> int | None:
168168
pattern = r"^\d+$" # x format
169169
if not re.match(pattern, value):
170-
msg = "Invalid major version format. Expected a positive integer value"
170+
msg = "Invalid major version format. Expected a positive integer value."
171171
raise argparse.ArgumentTypeError(msg)
172172
return value
173173

@@ -176,8 +176,8 @@ def _python_minor_version(value: Any) -> int | None:
176176
pattern = r"^\d+\.\d+$" # x.x format
177177
if not re.match(pattern, value):
178178
msg = (
179-
"Invalid minor version format."
180-
"Expected a positive float value in x.x pattern"
179+
"Invalid minor version format. "
180+
"Expected a positive float value in x.x pattern."
181181
)
182182
raise argparse.ArgumentTypeError(msg)
183183
return value

0 commit comments

Comments
 (0)