Skip to content

Commit 7d12ab7

Browse files
DimitriPapadopoulosjaraco
authored andcommitted
Apply ruff/flake8-implicit-str-concat rule ISC003
ISC003 Explicitly concatenated string should be implicitly concatenated
1 parent affcf39 commit 7d12ab7

File tree

5 files changed

+7
-13
lines changed

5 files changed

+7
-13
lines changed

distutils/command/bdist_dumb.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@ class bdist_dumb(Command):
3333
(
3434
'keep-temp',
3535
'k',
36-
"keep the pseudo-installation tree around after "
37-
+ "creating the distribution archive",
36+
"keep the pseudo-installation tree around after creating the distribution archive",
3837
),
3938
('dist-dir=', 'd', "directory to put final built distributions in"),
4039
('skip-build', None, "skip rebuilding everything (for testing/debugging)"),

distutils/command/build.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@ class build(Command):
2626
(
2727
'build-lib=',
2828
None,
29-
"build directory for all distribution (defaults to either "
30-
+ "build-purelib or build-platlib",
29+
"build directory for all distribution (defaults to either build-purelib or build-platlib",
3130
),
3231
('build-scripts=', None, "build directory for scripts"),
3332
('build-temp=', 't', "temporary build directory"),

distutils/command/build_ext.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ class build_ext(Command):
7171
'inplace',
7272
'i',
7373
"ignore build-lib and put compiled extensions into the source "
74-
+ "directory alongside your pure Python modules",
74+
"directory alongside your pure Python modules",
7575
),
7676
(
7777
'include-dirs=',

distutils/command/install.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -193,8 +193,7 @@ class install(Command):
193193
(
194194
'install-platbase=',
195195
None,
196-
"base installation directory for platform-specific files "
197-
+ "(instead of --exec-prefix or --home)",
196+
"base installation directory for platform-specific files (instead of --exec-prefix or --home)",
198197
),
199198
('root=', None, "install everything relative to this alternate root directory"),
200199
# Or, explicitly set the installation scheme
@@ -211,8 +210,7 @@ class install(Command):
211210
(
212211
'install-lib=',
213212
None,
214-
"installation directory for all module distributions "
215-
+ "(overrides --install-purelib and --install-platlib)",
213+
"installation directory for all module distributions (overrides --install-purelib and --install-platlib)",
216214
),
217215
('install-headers=', None, "installation directory for C/C++ headers"),
218216
('install-scripts=', None, "installation directory for Python scripts"),
@@ -348,8 +346,7 @@ def finalize_options(self): # noqa: C901
348346
self.install_base or self.install_platbase
349347
):
350348
raise DistutilsOptionError(
351-
"must supply either prefix/exec-prefix/home or "
352-
+ "install-base/install-platbase -- not both"
349+
"must supply either prefix/exec-prefix/home or install-base/install-platbase -- not both"
353350
)
354351

355352
if self.home and (self.prefix or self.exec_prefix):

distutils/dist.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -652,8 +652,7 @@ def _show_help(
652652
if display_options:
653653
parser.set_option_table(self.display_options)
654654
parser.print_help(
655-
"Information display options (just display "
656-
+ "information, ignore any commands)"
655+
"Information display options (just display information, ignore any commands)"
657656
)
658657
print()
659658

0 commit comments

Comments
 (0)