Skip to content
This repository was archived by the owner on Oct 11, 2024. It is now read-only.

Commit 56ce6bd

Browse files
committed
format changes
1 parent 56c6df3 commit 56ce6bd

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

neuralmagic/tests/test_nm-vllm_licenses.py

+4-6
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@ def build_dist_info_path() -> Tuple[str, Path]:
4343
cmd, shell=True, stderr=subprocess.STDOUT).decode("utf-8")
4444
try:
4545
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
4847
][0]
4948
except IndexError as ie:
5049
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,
9998

10099
@mark.parametrize(
101100
("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],
104102
)
105103
def test_license_file_presence_content(self,
106104
build_dist_info_path: Tuple[str,
@@ -112,8 +110,8 @@ def test_license_file_presence_content(self,
112110
package_name, dist_info = build_dist_info_path
113111
self.check_file_exists_and_content(dist_info, file_name, content_regex)
114112

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]):
117115
"""
118116
verifies that the list of license files in the directory matches the
119117
list provided in the METADATA file included with the distribution.

0 commit comments

Comments
 (0)