Skip to content

Commit

Permalink
chore(ruff): Manual fix for test_ls
Browse files Browse the repository at this point in the history
  • Loading branch information
tony committed Sep 3, 2023
1 parent a3f0de8 commit 424d556
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/cli/test_ls.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import contextlib
import os
import pathlib

import pytest
Expand Down Expand Up @@ -28,7 +27,7 @@ def test_ls_cli(
# - directories should be ignored
# - extensions not covered in VALID_WORKSPACE_DIR_FILE_EXTENSIONS
ignored_filenames = [".git/", ".gitignore/", "session_4.txt"]
stems = [os.path.splitext(f)[0] for f in filenames if f not in ignored_filenames]
stems = [pathlib.Path(f).stem for f in filenames if f not in ignored_filenames]

for filename in filenames:
location = tmp_path / f".tmuxp/{filename}"
Expand Down

0 comments on commit 424d556

Please sign in to comment.