Skip to content

Commit

Permalink
Address ruff PIE810
Browse files Browse the repository at this point in the history
  • Loading branch information
shatakshiiii committed May 30, 2024
1 parent d11d09b commit 3c0d6b0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion src/ansible_navigator/actions/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -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":
Expand Down

0 comments on commit 3c0d6b0

Please sign in to comment.