## Description <!-- A clear and concise description of what the bug is. --> As there is the possibility to override types in `config.commitizen.types`, the pre-commit hook should take these into account as well. ## Steps to reproduce 1. Add custom types in `config.commitizen.types` 2. Write & commit a _commit_ message with the aforementioned custom types ## Current behavior <!-- What happens actually so you think this is a bug. --> pre-commit hook should exit with `Passed` ## Desired behavior <!-- A clear and concise description of what you expected to happen. --> pre-commit hook exits with `Failed` <!-- **Screenshots** If applicable, add screenshots to help explain your problem. --> <!-- ## Environment For older commitizen versions, please include the output of the following commands manually: cz version python --version python3 -c "import platform; print(platform.system())" Add output of the following command to include the following - commitizen version: - python version: - operating system: ```bash cz version --report ``` -->