Skip to content

py(deps) libtmux: 0.39.0 -> 0.40.0 #954

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Dec 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.

Loading