@@ -45,7 +45,7 @@ class Opts:
45
45
'' , '--concurrency' , action = 'store' , metavar = "LIB" ,
46
46
choices = CONCURRENCY_CHOICES ,
47
47
help = (
48
- "Properly measure code using a concurrency library. "
48
+ "Properly measure code using a concurrency library. " +
49
49
"Valid values are: {}."
50
50
).format (", " .join (CONCURRENCY_CHOICES )),
51
51
)
@@ -77,20 +77,20 @@ class Opts:
77
77
'' , '--include' , action = 'store' ,
78
78
metavar = "PAT1,PAT2,..." ,
79
79
help = (
80
- "Include only files whose paths match one of these patterns. "
80
+ "Include only files whose paths match one of these patterns. " +
81
81
"Accepts shell-style wildcards, which must be quoted."
82
82
),
83
83
)
84
84
pylib = optparse .make_option (
85
85
'-L' , '--pylib' , action = 'store_true' ,
86
86
help = (
87
- "Measure coverage even inside the Python installed library, "
87
+ "Measure coverage even inside the Python installed library, " +
88
88
"which isn't done by default."
89
89
),
90
90
)
91
91
sort = optparse .make_option (
92
92
'--sort' , action = 'store' , metavar = 'COLUMN' ,
93
- help = "Sort the report by the named column: name, stmts, miss, branch, brpart, or cover. "
93
+ help = "Sort the report by the named column: name, stmts, miss, branch, brpart, or cover. " +
94
94
"Default is name."
95
95
)
96
96
show_missing = optparse .make_option (
@@ -117,15 +117,15 @@ class Opts:
117
117
'' , '--omit' , action = 'store' ,
118
118
metavar = "PAT1,PAT2,..." ,
119
119
help = (
120
- "Omit files whose paths match one of these patterns. "
120
+ "Omit files whose paths match one of these patterns. " +
121
121
"Accepts shell-style wildcards, which must be quoted."
122
122
),
123
123
)
124
124
contexts = optparse .make_option (
125
125
'' , '--contexts' , action = 'store' ,
126
126
metavar = "REGEX1,REGEX2,..." ,
127
127
help = (
128
- "Only display data from lines covered in the given contexts. "
128
+ "Only display data from lines covered in the given contexts. " +
129
129
"Accepts Python regexes, which must be quoted."
130
130
),
131
131
)
@@ -146,30 +146,30 @@ class Opts:
146
146
parallel_mode = optparse .make_option (
147
147
'-p' , '--parallel-mode' , action = 'store_true' ,
148
148
help = (
149
- "Append the machine name, process id and random number to the "
150
- ".coverage data file name to simplify collecting data from "
149
+ "Append the machine name, process id and random number to the " +
150
+ ".coverage data file name to simplify collecting data from " +
151
151
"many processes."
152
152
),
153
153
)
154
154
module = optparse .make_option (
155
155
'-m' , '--module' , action = 'store_true' ,
156
156
help = (
157
- "<pyfile> is an importable Python module, not a script path, "
157
+ "<pyfile> is an importable Python module, not a script path, " +
158
158
"to be run as 'python -m' would run it."
159
159
),
160
160
)
161
161
precision = optparse .make_option (
162
162
'' , '--precision' , action = 'store' , metavar = 'N' , type = int ,
163
163
help = (
164
- "Number of digits after the decimal point to display for "
164
+ "Number of digits after the decimal point to display for " +
165
165
"reported coverage percentages."
166
166
),
167
167
)
168
168
rcfile = optparse .make_option (
169
169
'' , '--rcfile' , action = 'store' ,
170
170
help = (
171
- "Specify configuration file. "
172
- "By default '.coveragerc', 'setup.cfg', 'tox.ini', and "
171
+ "Specify configuration file. " +
172
+ "By default '.coveragerc', 'setup.cfg', 'tox.ini', and " +
173
173
"'pyproject.toml' are tried. [env: COVERAGE_RCFILE]"
174
174
),
175
175
)
@@ -180,7 +180,7 @@ class Opts:
180
180
timid = optparse .make_option (
181
181
'' , '--timid' , action = 'store_true' ,
182
182
help = (
183
- "Use a simpler but slower trace method. Try this if you get "
183
+ "Use a simpler but slower trace method. Try this if you get " +
184
184
"seemingly impossible results!"
185
185
),
186
186
)
@@ -328,7 +328,7 @@ def get_prog_name(self):
328
328
] + GLOBAL_ARGS ,
329
329
usage = "[options] [modules]" ,
330
330
description = (
331
- "Make annotated copies of the given files, marking statements that are executed "
331
+ "Make annotated copies of the given files, marking statements that are executed " +
332
332
"with > and statements that are missed with !."
333
333
),
334
334
),
@@ -341,11 +341,11 @@ def get_prog_name(self):
341
341
] + GLOBAL_ARGS ,
342
342
usage = "[options] <path1> <path2> ... <pathN>" ,
343
343
description = (
344
- "Combine data from multiple coverage files collected "
345
- "with 'run -p'. The combined results are written to a single "
346
- "file representing the union of the data. The positional "
347
- "arguments are data files or directories containing data files. "
348
- "If no paths are provided, data files in the default data file's "
344
+ "Combine data from multiple coverage files collected " +
345
+ "with 'run -p'. The combined results are written to a single " +
346
+ "file representing the union of the data. The positional " +
347
+ "arguments are data files or directories containing data files. " +
348
+ "If no paths are provided, data files in the default data file's " +
349
349
"directory are combined."
350
350
),
351
351
),
@@ -354,12 +354,12 @@ def get_prog_name(self):
354
354
"debug" , GLOBAL_ARGS ,
355
355
usage = "<topic>" ,
356
356
description = (
357
- "Display information about the internals of coverage.py, "
358
- "for diagnosing problems. "
359
- "Topics are: "
360
- "'data' to show a summary of the collected data; "
361
- "'sys' to show installation information; "
362
- "'config' to show the configuration; "
357
+ "Display information about the internals of coverage.py, " +
358
+ "for diagnosing problems. " +
359
+ "Topics are: " +
360
+ "'data' to show a summary of the collected data; " +
361
+ "'sys' to show installation information; " +
362
+ "'config' to show the configuration; " +
363
363
"'premain' to show what is calling coverage."
364
364
),
365
365
),
@@ -393,8 +393,8 @@ def get_prog_name(self):
393
393
] + GLOBAL_ARGS ,
394
394
usage = "[options] [modules]" ,
395
395
description = (
396
- "Create an HTML report of the coverage of the files. "
397
- "Each file gets its own page, with the source decorated to show "
396
+ "Create an HTML report of the coverage of the files. " +
397
+ "Each file gets its own page, with the source decorated to show " +
398
398
"executed, excluded, and missed lines."
399
399
),
400
400
),
@@ -732,9 +732,9 @@ def do_run(self, options, args):
732
732
# they will be None if they have not been specified.
733
733
if getattr (options , opt_name ) is not None :
734
734
show_help (
735
- "Options affecting multiprocessing must only be specified "
736
- "in a configuration file.\n "
737
- "Remove --{} from the command line." . format ( opt_name )
735
+ "Options affecting multiprocessing must only be specified " +
736
+ "in a configuration file.\n " +
737
+ f "Remove --{ opt_name } from the command line."
738
738
)
739
739
return ERR
740
740
0 commit comments