@@ -153,10 +153,7 @@ def test_ls_repo_with_path_dir_dvc_only_empty(tmp_dir, dvc, scm):
153
153
154
154
assert Repo .ls (os .fspath (tmp_dir ), path = "folder" , dvc_only = True ) == []
155
155
156
- assert (
157
- Repo .ls (os .fspath (tmp_dir ), path = "empty_dvc_folder" , dvc_only = True )
158
- == []
159
- )
156
+ assert Repo .ls (os .fspath (tmp_dir ), path = "empty_dvc_folder" , dvc_only = True ) == []
160
157
161
158
162
159
def test_ls_repo_with_path_subdir (tmp_dir , dvc , scm ):
@@ -191,9 +188,7 @@ def test_ls_repo_with_path_subdir_dvc_only_recursive(tmp_dir, dvc, scm):
191
188
192
189
path = os .path .join ("data" , "subcontent" )
193
190
files = Repo .ls (os .fspath (tmp_dir ), path , dvc_only = True , recursive = True )
194
- match_files (
195
- files , ((("data.xml" ,), True ), (("statistics" , "data.csv" ), True ))
196
- )
191
+ match_files (files , ((("data.xml" ,), True ), (("statistics" , "data.csv" ), True )))
197
192
198
193
199
194
def test_ls_repo_with_path_file_out (tmp_dir , dvc , scm ):
@@ -616,9 +611,7 @@ def _list_files(repo, path=None):
616
611
dvc_files = {"dvc_dir" , "foo.txt" , "foo.txt.dvc" , "dvc_dir.dvc" }
617
612
common_outputs = git_tracked_outputs | extras | dvc_files
618
613
619
- top_level_outputs = (
620
- common_outputs if dvc_top_level else git_tracked_outputs
621
- )
614
+ top_level_outputs = common_outputs if dvc_top_level else git_tracked_outputs
622
615
assert _list_files (erepo ) == top_level_outputs
623
616
assert _list_files (erepo , "scm_dir" ) == {"ipsum" }
624
617
if dvc_top_level :
0 commit comments