@@ -43,8 +43,7 @@ def build_dist_info_path() -> Tuple[str, Path]:
43
43
cmd , shell = True , stderr = subprocess .STDOUT ).decode ("utf-8" )
44
44
try :
45
45
package = [
46
- line for line in packages .splitlines ()
47
- if "nm-vllm" in line
46
+ line for line in packages .splitlines () if "nm-vllm" in line
48
47
][0 ]
49
48
except IndexError as ie :
50
49
raise ValueError (f"nm-vllm is not installed. see:\n { packages } " ) from ie
@@ -99,8 +98,7 @@ def check_file_exists_and_content(dist_info_path: Path, file_name: str,
99
98
100
99
@mark .parametrize (
101
100
("file_name" , "content_regex" ),
102
- [param (lf [0 ], lf [1 ],
103
- marks = lf [2 ]) for lf in THIRD_PARTY_LICENSE_FILES ],
101
+ [param (lf [0 ], lf [1 ], marks = lf [2 ]) for lf in THIRD_PARTY_LICENSE_FILES ],
104
102
)
105
103
def test_license_file_presence_content (self ,
106
104
build_dist_info_path : Tuple [str ,
@@ -112,8 +110,8 @@ def test_license_file_presence_content(self,
112
110
package_name , dist_info = build_dist_info_path
113
111
self .check_file_exists_and_content (dist_info , file_name , content_regex )
114
112
115
- def test_expected_files_included (self ,
116
- build_dist_info_path : Tuple [ str , Path ]):
113
+ def test_expected_files_included (self , build_dist_info_path : Tuple [ str ,
114
+ Path ]):
117
115
"""
118
116
verifies that the list of license files in the directory matches the
119
117
list provided in the METADATA file included with the distribution.
0 commit comments