Skip to content

Commit

Permalink
Build complete sentences.
Browse files Browse the repository at this point in the history
  • Loading branch information
kdeldycke committed Jun 24, 2022
1 parent 2eb0354 commit d940d24
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/poetry/console/commands/check.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,17 @@ def handle(self) -> int:
)
if deprecated:
for old_classifier in deprecated:
message = f"Deprecated classifier {old_classifier!r}."
new_classifiers = deprecated_classifiers[old_classifier]
if new_classifiers:
message += f" Must be replaced by {new_classifiers!r}."
message = (
f"Deprecated classifier {old_classifier!r}. "
f"Must be replaced by {new_classifiers!r}."
)
else:
message += " Must be removed."
message = (
f"Deprecated classifier {old_classifier!r}. "
"Must be removed."
)
check_result["warnings"].append(message)

if not check_result["errors"] and not check_result["warnings"]:
Expand Down

0 comments on commit d940d24

Please sign in to comment.