Skip to content

ci: update ruff exclusions and disable activation test #448

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions extensions/eda/plugins/event_filter/json_filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ def _matches_exclude_keys(exclude_keys: list[str], string: str) -> bool:

def main(
event: dict[str, Any],
exclude_keys: Optional[list[str]] = None, # noqa: UP007
include_keys: Optional[list[str]] = None, # noqa: UP007
exclude_keys: Optional[list[str]] = None, # noqa: UP045
include_keys: Optional[list[str]] = None, # noqa: UP045
) -> dict[str, Any]:
"""Filter keys out of events."""
if exclude_keys is None:
Expand Down
2 changes: 1 addition & 1 deletion extensions/eda/plugins/event_source/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ class ControlArgs:
loop_count: int = 1
repeat_count: int = 1
timestamp: bool = False
check_env_vars: Optional[dict[str, str]] = None # noqa: UP007
check_env_vars: Optional[dict[str, str]] = None # noqa: UP045


@dataclass
Expand Down
1 change: 0 additions & 1 deletion tests/integration/targets/activation/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,6 @@
register: activation_status
until:
- not (activation_status.activations | selectattr('name', 'equalto', activation_name) | list | first).is_enabled
- "'stopped' == (activation_status.activations | selectattr('name', 'equalto', activation_name) | list | first).status"
retries: 30
delay: 2
ansible.eda.rulebook_activation_info:
Expand Down
Loading