Skip to content

Commit 5a1a29b

Browse files
Olenthekaveman
authored andcommitted
feat: show allowed types
List allowed types in verbose error output
1 parent e8cc8c0 commit 5a1a29b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

conventional_pre_commit/output.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ def fail_verbose(
8787
else:
8888
lines.append(f"{c.yellow} - Expected value for {c.restore}{group}{c.yellow} but found none.{c.restore}")
8989

90+
lines.extend(["", f"Allowed types: {c.blue}{", ".join(types)}{c.restore}"])
91+
9092
lines.extend(
9193
[
9294
"",

0 commit comments

Comments
 (0)