Skip to content

Commit

Permalink
workflow: pycharm scripts inspection fixing
Browse files Browse the repository at this point in the history
  • Loading branch information
Fallen-Breath committed Oct 1, 2024
1 parent a3fc5dd commit 558799c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/scripts/check.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@
#! ---- Label and comment ---- ##

if EVENT_TYPE == EventType.OPENED:
gh.pr_label(add_labels=actions.labels)
gh.pr_label(add_labels=sorted(actions.labels))
gh.pr_comment(reply)

if EVENT_TYPE == EventType.LABELED:
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/scripts/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import json
import os
from enum import Enum
from typing import Optional
from typing import Optional, Iterable

from common.constants import REPOS_ROOT
from common.report import reporter
Expand Down Expand Up @@ -118,7 +118,7 @@ def removed_plugins(self) -> list[str]:
return [plugin_id for plugin_id, tag in self.plugins.items() if tag == Tag.PLG_REMOVE]

@property
def plugin_ids(self) -> list[str]:
def plugin_ids(self) -> Iterable[str]:
'''Returns all plugin ids of actions'''
return self.plugins.keys()

Expand Down Expand Up @@ -282,7 +282,6 @@ def report_all(plugin_list: list[Plugin], action_list: ActionList, removed_list:
_Add label `recheck` to regenerate manually_
## Plugin Validation Report
'''
modified_report: str = None

if reached_limit:
modified_report = '''
Expand Down

0 comments on commit 558799c

Please sign in to comment.