Skip to content

Commit 8e000c1

Browse files
DimitriPapadopoulosjaraco
authored andcommitted
Round of ruff format after ruff check
1 parent 4cbdaff commit 8e000c1

File tree

6 files changed

+10
-16
lines changed

6 files changed

+10
-16
lines changed

distutils/archive_util.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -160,11 +160,9 @@ def make_zipfile(base_name, base_dir, verbose=0, dry_run=0): # noqa: C901
160160
# XXX really should distinguish between "couldn't find
161161
# external 'zip' command" and "zip failed".
162162
raise DistutilsExecError(
163-
164-
f"unable to create zip file '{zip_filename}': "
165-
"could neither import the 'zipfile' module nor "
166-
"find a standalone zip utility"
167-
163+
f"unable to create zip file '{zip_filename}': "
164+
"could neither import the 'zipfile' module nor "
165+
"find a standalone zip utility"
168166
)
169167

170168
else:

distutils/command/bdist_rpm.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,8 @@ def _make_spec_file(self): # noqa: C901
529529
# are just text that we drop in as-is. Hmmm.
530530

531531
install_cmd = (
532-
f'{def_setup_call} install -O1 --root=$RPM_BUILD_ROOT ' '--record=INSTALLED_FILES'
532+
f'{def_setup_call} install -O1 --root=$RPM_BUILD_ROOT '
533+
'--record=INSTALLED_FILES'
533534
)
534535

535536
script_options = [

distutils/command/build.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,7 @@ class build(Command):
3434
(
3535
'plat-name=',
3636
'p',
37-
"platform name to build for, if supported "
38-
f"(default: {get_platform()})",
37+
f"platform name to build for, if supported (default: {get_platform()})",
3938
),
4039
('compiler=', 'c', "specify the compiler type"),
4140
('parallel=', 'j', "number of parallel build jobs"),

distutils/command/sdist.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -410,8 +410,7 @@ def write_manifest(self):
410410
"""
411411
if self._manifest_is_not_generated():
412412
log.info(
413-
"not writing to manually maintained "
414-
f"manifest file '{self.manifest}'"
413+
f"not writing to manually maintained manifest file '{self.manifest}'"
415414
)
416415
return
417416

distutils/core.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -274,10 +274,8 @@ def run_setup(script_name, script_args=None, stop_after="run"):
274274

275275
if _setup_distribution is None:
276276
raise RuntimeError(
277-
278-
"'distutils.core.setup()' was never called -- "
279-
f"perhaps '{script_name}' is not a Distutils setup script?"
280-
277+
"'distutils.core.setup()' was never called -- "
278+
f"perhaps '{script_name}' is not a Distutils setup script?"
281279
)
282280

283281
# I wonder if the setup script's namespace -- g and l -- would be of

distutils/sysconfig.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,8 +262,7 @@ def get_python_lib(plat_specific=0, standard_lib=0, prefix=None):
262262
return os.path.join(prefix, "Lib", "site-packages")
263263
else:
264264
raise DistutilsPlatformError(
265-
"I don't know where Python installs its library "
266-
f"on platform '{os.name}'"
265+
f"I don't know where Python installs its library on platform '{os.name}'"
267266
)
268267

269268

0 commit comments

Comments
 (0)