Skip to content

Commit

Permalink
chore: Format with ruff 0.9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
tony committed Jan 9, 2025
1 parent a6f6c72 commit dc56367
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
8 changes: 4 additions & 4 deletions tests/workspace/test_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -1252,7 +1252,7 @@ def fn() -> bool:
assert retry_until(
fn,
1,
), f'Should{" " if should_see else "not "} output in captured pane'
), f"Should{' ' if should_see else 'not '} output in captured pane"


@pytest.mark.parametrize(
Expand Down Expand Up @@ -1444,9 +1444,9 @@ def width(p: Pane) -> int:
assert all(
main_horizontal_pane_height != pane_height for pane_height in pane_heights
), "The top row should not be the same size as the bottom row (even though it can)"
assert all(
pane_heights[0] == pane_height for pane_height in pane_heights
), "The bottom row should be uniform height"
assert all(pane_heights[0] == pane_height for pane_height in pane_heights), (
"The bottom row should be uniform height"
)
assert width(main_horizontal_pane) > width(panes[0])

def is_almost_equal(x: int, y: int) -> bool:
Expand Down
10 changes: 4 additions & 6 deletions tests/workspace/test_import_teamocil.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,10 @@ def test_config_to_dict(


@pytest.fixture(scope="module")
def multisession_config() -> (
dict[
str,
dict[str, t.Any],
]
):
def multisession_config() -> dict[
str,
dict[str, t.Any],
]:
"""Return loaded multisession teamocil config as a dictionary.
Also prevents re-running assertion the loads the yaml, since ordering of
Expand Down

0 comments on commit dc56367

Please sign in to comment.