File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1919Every developer should also install ` pre-commit` locally:
2020
21211. Install [pre-commit](http://pre-commit.com/).
22- - Homebrew : ` brew install pre-commit`
23- - Poetry (for [server ](https://github.com/clairBuoyant/server)) : ` poetry install`
22+ - [ Homebrew](https://brew.sh/) : ` brew install pre-commit`
23+ - [Pipx ](https://pypa. github.io/pipx/) : ` pipx install pre-commit `
24242. Run `pre-commit install` in repository.
2525
2626Now every time a commit is made, the hooks specified in `.pre-commit-config.yaml` will execute.
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ RED="\033[0;31m"
66
77local_branch=" $( git rev-parse --abbrev-ref HEAD) "
88
9- valid_branch_regex=" ^(bug|chore|devops|feat|fix| hotfix|release)\/[a-zA-Z0 -9._-]+$"
9+ valid_branch_regex=" ^(bug|chore|enhancement|feature| hotfix|release|wip )\/[a-z0 -9._-]+$"
1010
1111message=" Commit failed. Branch names in this project must follow this pattern: $valid_branch_regex . Please rename your branch and try again."
1212
1616 exit 1
1717fi
1818
19- exit 0
19+ exit 0
You can’t perform that action at this time.
0 commit comments