Skip to content

Commit

Permalink
Merge pull request #913 from pre-commit/deprecated
Browse files Browse the repository at this point in the history
allow deprecated hooks to exceed character limit
  • Loading branch information
asottile authored Dec 20, 2023
2 parents b401fca + 3d799f1 commit 0d3cd9b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion make_all_hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@ def get_manifest(repo_path: str) -> tuple[bool, str, list[dict[str, Any]]]:
print(f'{repo_path} ({hook["id"]}) sets `fail_fast: true`')
return False, repo_path, []
# hook names should be short and not cause wrapping by default
if len(hook['name']) > 50:
if (
len(hook['name']) > 50 and
'deprecated' not in hook['name'].lower()
):
print(f'{repo_path} ({hook["id"]}) has too long `name` (>50)')
return False, repo_path, []

Expand Down

0 comments on commit 0d3cd9b

Please sign in to comment.