Skip to content

Commit

Permalink
style: fix code style through black
Browse files Browse the repository at this point in the history
  • Loading branch information
Lee-W committed Apr 23, 2023
1 parent 9c20484 commit e039f16
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions commitizen/commands/init.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e039f16

Please sign in to comment.