From d494d3a6bc3a304c8c9083ebbeac5a719738c504 Mon Sep 17 00:00:00 2001 From: hogank3 <56086965+hogank3@users.noreply.github.com> Date: Fri, 17 Feb 2023 12:22:23 -0700 Subject: [PATCH 1/2] chore: fix error message typo --- commitizen/commands/init.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commitizen/commands/init.py b/commitizen/commands/init.py index 91b5bd4b70..834731e839 100644 --- a/commitizen/commands/init.py +++ b/commitizen/commands/init.py @@ -182,7 +182,7 @@ def _install_pre_commit_hook(self, hook_types: Optional[List[str]] = None): if not self._search_pre_commit(): raise InitFailedError( - "pre-commit is not installed in current environement." + "pre-commit is not installed in current environment." ) if hook_types is None: hook_types = ["commit-msg", "pre-push"] From d3393aeac216962640f2ce288af2ef418df2b8cd Mon Sep 17 00:00:00 2001 From: Wei Lee Date: Sun, 23 Apr 2023 11:56:25 +0800 Subject: [PATCH 2/2] style: fix code style through black --- commitizen/commands/init.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/commitizen/commands/init.py b/commitizen/commands/init.py index 834731e839..c94c40cfb1 100644 --- a/commitizen/commands/init.py +++ b/commitizen/commands/init.py @@ -181,9 +181,7 @@ def _install_pre_commit_hook(self, hook_types: Optional[List[str]] = None): yaml.safe_dump(config_data, stream=config_file) if not self._search_pre_commit(): - raise InitFailedError( - "pre-commit is not installed in current environment." - ) + raise InitFailedError("pre-commit is not installed in current environment.") if hook_types is None: hook_types = ["commit-msg", "pre-push"] self._exec_install_pre_commit_hook(hook_types)