You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* 'Refactored by Sourcery'
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
Co-authored-by: Sourcery AI <>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
"Found --no-cache-dir flag, version {} doesn't support that yet though, removing.".format(
59
-
pip_version
60
-
)
57
+
f"Found --no-cache-dir flag, version {pip_version} doesn't support that yet though, removing."
61
58
)
59
+
62
60
args.remove("--no-cache-dir")
63
61
64
62
# strip --disable-pip-version-check for versions that don't support it
@@ -67,10 +65,9 @@ def clean_install_command(
67
65
and"--disable-pip-version-check"inargs
68
66
):
69
67
logger.debug(
70
-
"Found --disable-pip-version-check flag, version {} doesn't support that yet though, removing.".format(
71
-
pip_version
72
-
)
68
+
f"Found --disable-pip-version-check flag, version {pip_version} doesn't support that yet though, removing."
73
69
)
70
+
74
71
args.remove("--disable-pip-version-check")
75
72
76
73
# add --no-use-wheel for versions that otherwise break
@@ -251,11 +248,9 @@ def _setup_pip(self):
251
248
ifnotok:
252
249
ifpip_install_dir:
253
250
self._logger.error(
254
-
"Cannot use this pip install, can't write to the install dir and also can't use "
255
-
"--user for installing. Check your setup and the permissions on {}.".format(
256
-
pip_install_dir
257
-
)
251
+
f"Cannot use this pip install, can't write to the install dir and also can't use --user for installing. Check your setup and the permissions on {pip_install_dir}."
258
252
)
253
+
259
254
else:
260
255
self._logger.error(
261
256
"Cannot use this pip install, something's wrong with the python environment. "
@@ -313,18 +308,16 @@ def autodetect_pip(cls):
313
308
)
314
309
ifp.returncode==0:
315
310
logging.getLogger(__name__).info(
316
-
'Using "{}" as command to invoke pip'.format(" ".join(command))
311
+
f'Using "{" ".join(command)}" as command to invoke pip'
0 commit comments