From 4a0c40197b7878d1b173f6c3617177669190f9e5 Mon Sep 17 00:00:00 2001 From: Dimitri Papadopoulos Orfanos <3234522+DimitriPapadopoulos@users.noreply.github.com> Date: Tue, 8 Oct 2024 19:46:20 +0200 Subject: [PATCH] Apply ruff rule RUF027 (#355) RUF027 Possible f-string without an `f` prefix --- ez_setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ez_setup.py b/ez_setup.py index 3120329..621b269 100644 --- a/ez_setup.py +++ b/ez_setup.py @@ -132,7 +132,7 @@ def archive_context(filename): def _do_download(version, download_base, to_dir, download_delay): """Download Setuptools.""" py_desig = f'py{sys.version_info[0]}.{sys.version_info[1]}' - tp = 'setuptools-{version}-{py_desig}.egg' + tp = f'setuptools-{version}-{py_desig}.egg' egg = os.path.join(to_dir, tp.format(**locals())) if not os.path.exists(egg): archive = download_setuptools(version, download_base, @@ -193,7 +193,7 @@ def _conflict_bail(VC_err, version): Setuptools was imported prior to invocation, so it is unsafe to unload it. Bail out. """ - conflict_tmpl = textwrap.dedent(""" + conflict_tmpl = textwrap.dedent(f""" The required version of setuptools (>={version}) is not available, and can't be installed while this script is running. Please install a more recent version first, using