@@ -25,7 +25,9 @@ def test_git_no_files(tmp_path: Path, output: Output) -> None:
25
25
"""
26
26
config = Config (args = NAMESPACE , output = output , term_features = output .term_features )
27
27
installer = Installer (output = output , config = config )
28
- found_using , files = installer ._find_files_using_git_ls_files (local_repo_path = tmp_path )
28
+ found_using , files = installer ._find_files_using_git_ls_files (
29
+ local_repo_path = tmp_path ,
30
+ )
29
31
assert not found_using
30
32
assert files is None
31
33
@@ -40,7 +42,9 @@ def test_git_none_tracked(tmp_path: Path, output: Output) -> None:
40
42
config = Config (args = NAMESPACE , output = output , term_features = output .term_features )
41
43
installer = Installer (output = output , config = config )
42
44
subprocess .run (args = ["git" , "init" ], cwd = tmp_path , check = False )
43
- found_using , files = installer ._find_files_using_git_ls_files (local_repo_path = tmp_path )
45
+ found_using , files = installer ._find_files_using_git_ls_files (
46
+ local_repo_path = tmp_path ,
47
+ )
44
48
assert found_using == "git ls-files"
45
49
assert files == ""
46
50
@@ -57,7 +61,9 @@ def test_git_one_tracked(tmp_path: Path, output: Output) -> None:
57
61
subprocess .run (args = ["git" , "init" ], cwd = tmp_path , check = False )
58
62
(tmp_path / "file.txt" ).touch ()
59
63
subprocess .run (args = ["git" , "add" , "--all" ], cwd = tmp_path , check = False )
60
- found_using , files = installer ._find_files_using_git_ls_files (local_repo_path = tmp_path )
64
+ found_using , files = installer ._find_files_using_git_ls_files (
65
+ local_repo_path = tmp_path ,
66
+ )
61
67
assert found_using == "git ls-files"
62
68
assert files == "file.txt\n "
63
69
0 commit comments