- Install
pre-commit
. - Enable
pre-commit
hooks in the repository folder:pre-commit install && pre-commit install --hook-type commit-msg
. These hooks automatically format the code and check the format of the commit message. - The format of commit messages must follow the Conventional Commits convention.