Skip to content

Commit 0708824

Browse files
committed
chore(ruff) ruff v0.12.1 aggressive fixes
uv run ruff check --select ALL . --fix --unsafe-fixes --preview --show-fixes; uv run ruff format . Fixed 2 errors: - src/tmuxp/workspace/finders.py: 2 × PLC1802 (len-test) Found 1112 errors (2 fixed, 1110 remaining)
1 parent 002a105 commit 0708824

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/tmuxp/workspace/finders.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,9 +218,9 @@ def find_workspace_file(
218218
"Use file names e.g. myproject.json, coolproject.yaml. "
219219
"You can load them by filename.",
220220
)
221-
elif not len(candidates):
221+
elif not candidates:
222222
file_error = "No tmuxp files found in directory"
223-
if len(candidates):
223+
if candidates:
224224
workspace_file = candidates[0]
225225
elif not exists(workspace_file):
226226
file_error = "file not found"

0 commit comments

Comments
 (0)