Skip to content

Commit 571e72e

Browse files
committed
chore(ruff) Automated fixes for typing annotations
Fixed 5 errors: - tests/fixtures/pluginsystem/plugins/tmuxp_test_plugin_awf/tmuxp_test_plugin_awf/plugin.py: 1 × RUF047 (needless-else) - tests/fixtures/pluginsystem/plugins/tmuxp_test_plugin_owc/tmuxp_test_plugin_owc/plugin.py: 1 × RUF047 (needless-else) - tests/test_util.py: 1 × COM812 (missing-trailing-comma) 1 × TC003 (typing-only-standard-library-import) 1 × I001 (unsorted-imports) uv run ruff check --select ALL . --fix --unsafe-fixes --preview --show-fixes; uv run ruff format .
1 parent c556ec4 commit 571e72e

File tree

3 files changed

+3
-6
lines changed
  • tests

3 files changed

+3
-6
lines changed

tests/fixtures/pluginsystem/plugins/tmuxp_test_plugin_awf/tmuxp_test_plugin_awf/plugin.py

-2
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,3 @@ def after_window_finished(self, window: Window) -> None:
2626
window.rename_window("plugin_test_awf_mw_2")
2727
elif window.name == "mp_test_owc":
2828
window.rename_window("mp_test_awf")
29-
else:
30-
pass

tests/fixtures/pluginsystem/plugins/tmuxp_test_plugin_owc/tmuxp_test_plugin_owc/plugin.py

-2
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,3 @@ def on_window_create(self, window: Window) -> None:
2626
window.rename_window("plugin_test_owc_mw_2")
2727
elif window.name == "mp_test":
2828
window.rename_window("mp_test_owc")
29-
else:
30-
pass

tests/test_util.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
from __future__ import annotations
44

5-
import pathlib
65
import sys
76
import typing as t
87

@@ -15,6 +14,8 @@
1514
from .constants import FIXTURE_PATH
1615

1716
if t.TYPE_CHECKING:
17+
import pathlib
18+
1819
from libtmux.server import Server
1920

2021

@@ -45,7 +46,7 @@ def temp_script(tmp_path: pathlib.Path) -> pathlib.Path:
4546
"""#!/bin/sh
4647
echo "Hello, World!"
4748
exit 0
48-
"""
49+
""",
4950
)
5051
script.chmod(0o755)
5152
return script

0 commit comments

Comments
 (0)