diff --git a/pyproject.toml b/pyproject.toml index 811c581a93..e291a7e12b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -290,7 +290,6 @@ ignore = [ 'N817', # CamelCase `Constants` imported as acronym `C` 'PERF203', # `try`-`except` within a loop incurs performance overhead 'PGH003', # Use specific rule codes when ignoring type issues - 'PIE810', # [*] Call `startswith` once with a `tuple` 'PD011', # https://github.com/astral-sh/ruff/issues/2229 'PLR0911', # Too many return statements (8 > 6) 'PLR0912', # Too many branches (13 > 12) diff --git a/src/ansible_navigator/actions/run.py b/src/ansible_navigator/actions/run.py index a0abd29015..f6345a9a6c 100644 --- a/src/ansible_navigator/actions/run.py +++ b/src/ansible_navigator/actions/run.py @@ -431,7 +431,7 @@ def _init_replay(self) -> bool: return False version = data.get("version", "") - if version.startswith("1.") or version.startswith("2."): + if version.startswith(("1.", "2.")): try: stdout = data["stdout"] if self.mode == "interactive":