Skip to content

Commit

Permalink
pr-tool: give hint about commit headline lenght limits
Browse files Browse the repository at this point in the history
  • Loading branch information
joergsteffens committed Apr 4, 2024
1 parent a3f149a commit 1899463
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion devtools/pip-tools/pr_tool/main.py
Expand Up @@ -184,7 +184,7 @@ def _check_headline(cls, text):
issues = []
# we encourage to use no more than 50 chars, but still accept up to 60
if len(text) > 60:
issues.append("headline too long")
issues.append("headline too long ({} > 60)".format(len(text)))
res = cls.headline_pattern.match(text)
if res:
issues.append("headline starts with '{}'".format(res.group(0)))
Expand Down

0 comments on commit 1899463

Please sign in to comment.