New hook for enforcing branch name

Use a regex to validate the naming convention the branch should follow.
If it's not correct, it fails.
This commit is contained in:
Mariano Anaya 2024-05-31 13:08:20 +02:00
parent ee30c6ada9
commit 86d5ab84cb
4 changed files with 58 additions and 0 deletions

View file

@ -63,6 +63,7 @@ console_scripts =
requirements-txt-fixer = pre_commit_hooks.requirements_txt_fixer:main
sort-simple-yaml = pre_commit_hooks.sort_simple_yaml:main
trailing-whitespace-fixer = pre_commit_hooks.trailing_whitespace_fixer:main
enforce-branch-name = pre_commit_hooks.enforce_branch_name:main
[bdist_wheel]
universal = True