Skip to content

Commit 64d2dc3

Browse files
committed
Fix lints
1 parent b944856 commit 64d2dc3

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

src/pip/_internal/commands/cache.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,9 @@ def get_cache_info(self, options: Values, args: List[Any]) -> None:
9696
http_cache_location = self._cache_dir(options, "http-v2")
9797
old_http_cache_location = self._cache_dir(options, "http")
9898
wheels_cache_location = self._cache_dir(options, "wheels")
99-
http_cache_size = (
100-
filesystem.format_size(filesystem.directory_size(http_cache_location) +
101-
filesystem.directory_size(old_http_cache_location))
99+
http_cache_size = filesystem.format_size(
100+
filesystem.directory_size(http_cache_location)
101+
+ filesystem.directory_size(old_http_cache_location)
102102
)
103103
wheels_cache_size = filesystem.format_directory_size(wheels_cache_location)
104104

@@ -112,7 +112,7 @@ def get_cache_info(self, options: Values, args: List[Any]) -> None:
112112
Locally built wheels location: {wheels_cache_location}
113113
Locally built wheels size: {wheels_cache_size}
114114
Number of locally built wheels: {package_count}
115-
"""
115+
""" # noqa: E501
116116
)
117117
.format(
118118
http_cache_location=http_cache_location,

tests/functional/test_cache.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,10 @@ def test_cache_info(
203203
) -> None:
204204
result = script.pip("cache", "info")
205205

206-
assert f"Package index page cache location (pip v23.3+): {http_cache_dir}" in result.stdout
206+
assert (
207+
f"Package index page cache location (pip v23.3+): {http_cache_dir}"
208+
in result.stdout
209+
)
207210
assert f"Locally built wheels location: {wheel_cache_dir}" in result.stdout
208211
num_wheels = len(wheel_cache_files)
209212
assert f"Number of locally built wheels: {num_wheels}" in result.stdout

0 commit comments

Comments
 (0)