Skip to content

Commit

Permalink
py(deps) libtmux: 0.39.0 -> 0.40.0 (#954)
Browse files Browse the repository at this point in the history
  • Loading branch information
tony authored Dec 21, 2024
2 parents 858b924 + 6c9ff6a commit 83ba343
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 15 deletions.
4 changes: 4 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ $ pipx install --suffix=@next 'tmuxp' --pip-args '\--pre' --force

### Development

- libtmux: Bump minimum version 0.39.0 -> 0.40.0 (#954)

Adopts Python 3.9 syntax features

- Aggressive automated lint fixes via `ruff` (#953)

via ruff v0.8.4, all automated lint fixes, including unsafe and previews were applied for Python 3.9:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ include = [
{ path = "conftest.py", format = "sdist" },
]
dependencies = [
"libtmux~=0.39.0",
"libtmux~=0.40.0",
"colorama>=0.3.9",
"PyYAML>=6.0"
]
Expand Down
2 changes: 1 addition & 1 deletion src/tmuxp/workspace/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ def build(self, session: t.Optional[Session] = None, append: bool = False) -> No

if "global_options" in self.session_config:
for option, value in self.session_config["global_options"].items():
self.session.set_option(option, value, _global=True)
self.session.set_option(option, value, global_=True)

if "environment" in self.session_config:
for option, value in self.session_config["environment"].items():
Expand Down
6 changes: 3 additions & 3 deletions tests/workspace/test_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,10 +249,10 @@ def test_global_options(session: Session) -> None:
builder = WorkspaceBuilder(session_config=workspace, server=session.server)
builder.build(session=session)

status_position = session.show_option("status-position", _global=True)
status_position = session.show_option("status-position", global_=True)
assert isinstance(status_position, str)
assert "top" in status_position
assert session.show_option("repeat-time", _global=True) == 493
assert session.show_option("repeat-time", global_=True) == 493


def test_global_session_env_options(
Expand All @@ -275,7 +275,7 @@ def test_global_session_env_options(
builder = WorkspaceBuilder(session_config=workspace, server=session.server)
builder.build(session=session)

visual_silence_ = session.show_option("visual-silence", _global=True)
visual_silence_ = session.show_option("visual-silence", global_=True)
assert isinstance(visual_silence_, str)
assert visual_silence in visual_silence_
assert repeat_time == session.show_option("repeat-time")
Expand Down
20 changes: 10 additions & 10 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 83ba343

Please sign in to comment.