Skip to content

Commit

Permalink
ENH: improve update message of commitlint sub-hook
Browse files Browse the repository at this point in the history
  • Loading branch information
redeboer committed Nov 28, 2023
1 parent 6023ef4 commit 8cf11c9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/repoma/check_dev_files/commitlint.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"""

import os
from textwrap import dedent

from repoma.errors import PrecommitError

Expand All @@ -13,5 +14,8 @@ def main() -> None:
if not os.path.exists(path):
return
os.remove(path)
msg = f"Remove outdated {path}"
msg = dedent(f"""
Remove outdated {path}. Commitlint is now configured through
https://github.com/ComPWA/commitlint-config.
""").strip().replace("\n", " ")
raise PrecommitError(msg)

0 comments on commit 8cf11c9

Please sign in to comment.