Skip to content

Commit 0d3cd9b

Browse files
authored
Merge pull request #913 from pre-commit/deprecated
allow deprecated hooks to exceed character limit
2 parents b401fca + 3d799f1 commit 0d3cd9b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

make_all_hooks.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,10 @@ def get_manifest(repo_path: str) -> tuple[bool, str, list[dict[str, Any]]]:
3434
print(f'{repo_path} ({hook["id"]}) sets `fail_fast: true`')
3535
return False, repo_path, []
3636
# hook names should be short and not cause wrapping by default
37-
if len(hook['name']) > 50:
37+
if (
38+
len(hook['name']) > 50 and
39+
'deprecated' not in hook['name'].lower()
40+
):
3841
print(f'{repo_path} ({hook["id"]}) has too long `name` (>50)')
3942
return False, repo_path, []
4043

0 commit comments

Comments
 (0)