Skip to content

Commit

Permalink
fix individual hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
ilan committed Jan 30, 2024
1 parent 8c37d00 commit 13186d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion demisto_sdk/commands/pre_commit/pre_commit_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def _get_hooks(self, pre_commit_config: dict) -> dict:
for hook in repo.get("hooks", []):
if not self.run_docker_hooks and hook["id"].endswith("in-docker"):
continue
if (self.run_hook and hook["id"] in self.run_hook) or (
if (self.run_hook and self.run_hook in hook["id"]) or (
not self.run_hook
and hook["id"] not in self.skipped_hooks
and not get_property(hook, self.mode, "skip")
Expand Down

0 comments on commit 13186d8

Please sign in to comment.