Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Nov 25, 2024
1 parent 14a4792 commit 3484d43
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions src/ansible_navigator/ui_framework/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@
"CursesLinePart",
"CursesLines",
"Decoration",
"Interaction",
"Menu",
"UIConfig",
"UserInterface",
"dict_to_form",
"error_notification",
"form_to_dict",
"Interaction",
"Menu",
"nonblocking_notification",
"success_notification",
"UIConfig",
"UserInterface",
"warning_notification",
)
2 changes: 1 addition & 1 deletion src/ansible_navigator/ui_framework/menu_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ def _menu_line_part(
if is_bool:
# booleans are left justified
print_at = column_starts[colno]
elif is_number and not is_enum or is_duration:
elif (is_number and not is_enum) or is_duration:
# right justify on header if int, float or "duration"
print_at = column_starts[colno] + len(header[colno][1]) - len(text)
elif is_progress:
Expand Down
2 changes: 1 addition & 1 deletion src/ansible_navigator/utils/compatibility.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@
from importlib.resources.abc import Traversable


__all__ = ["Traversable", "importlib_metadata", "TypeAlias"]
__all__ = ["Traversable", "TypeAlias", "importlib_metadata"]
2 changes: 1 addition & 1 deletion src/ansible_navigator/utils/serialize.py
Original file line number Diff line number Diff line change
Expand Up @@ -369,4 +369,4 @@ def write_diagnostics_json(path: str, mode: int, content: object) -> None:
os.umask(oldmask)


__all__ = ("SafeLoader", "SafeDumper", "Loader", "yaml", "SerializationFormat")
__all__ = ("Loader", "SafeDumper", "SafeLoader", "SerializationFormat", "yaml")
4 changes: 2 additions & 2 deletions tests/integration/actions/run/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,8 @@ def test(

fixtures_update_requested = (
self.UPDATE_FIXTURES
or os.environ.get("ANSIBLE_NAVIGATOR_UPDATE_TEST_FIXTURES") == "true"
and not any((step.present, step.absent))
or (os.environ.get("ANSIBLE_NAVIGATOR_UPDATE_TEST_FIXTURES") == "true"
and not any((step.present, step.absent)))
)
if fixtures_update_requested:
update_fixtures(
Expand Down

0 comments on commit 3484d43

Please sign in to comment.