Skip to content

Commit

Permalink
black
Browse files Browse the repository at this point in the history
  • Loading branch information
yaakovpraisler committed Nov 20, 2023
1 parent 615068e commit 90e30b2
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions demisto_sdk/commands/content_graph/objects/pack_metadata.py
Expand Up @@ -229,20 +229,33 @@ def _get_pack_tags(
or any(
[
playbook.name.startswith("TIM ")
for playbook in content_items.playbook if not playbook.is_test
for playbook in content_items.playbook
if not playbook.is_test
]
)
else set()
)
tags |= {PackTags.USE_CASE} if self.use_cases else set()
tags |= (
{PackTags.TRANSFORMER}
if any(["transformer" in script.tags for script in content_items.script if not script.is_test])
if any(
[
"transformer" in script.tags
for script in content_items.script
if not script.is_test
]
)
else set()
)
tags |= (
{PackTags.FILTER}
if any(["filter" in script.tags for script in content_items.script if not script.is_test])
if any(
[
"filter" in script.tags
for script in content_items.script
if not script.is_test
]
)
else set()
)
tags |= (
Expand Down

0 comments on commit 90e30b2

Please sign in to comment.