@@ -53,8 +53,7 @@ class Opts:
53
53
help = "The context label to record for this coverage run." ,
54
54
)
55
55
contexts = optparse .make_option (
56
- '' , '--contexts' , action = 'store' ,
57
- metavar = "REGEX1,REGEX2,..." ,
56
+ '' , '--contexts' , action = 'store' , metavar = "REGEX1,REGEX2,..." ,
58
57
help = (
59
58
"Only display data from lines covered in the given contexts. " +
60
59
"Accepts Python regexes, which must be quoted."
@@ -102,8 +101,7 @@ class Opts:
102
101
help = "Ignore errors while reading source files." ,
103
102
)
104
103
include = optparse .make_option (
105
- '' , '--include' , action = 'store' ,
106
- metavar = "PAT1,PAT2,..." ,
104
+ '' , '--include' , action = 'store' , metavar = "PAT1,PAT2,..." ,
107
105
help = (
108
106
"Include only files whose paths match one of these patterns. " +
109
107
"Accepts shell-style wildcards, which must be quoted."
@@ -128,26 +126,22 @@ class Opts:
128
126
),
129
127
)
130
128
omit = optparse .make_option (
131
- '' , '--omit' , action = 'store' ,
132
- metavar = "PAT1,PAT2,..." ,
129
+ '' , '--omit' , action = 'store' , metavar = "PAT1,PAT2,..." ,
133
130
help = (
134
131
"Omit files whose paths match one of these patterns. " +
135
132
"Accepts shell-style wildcards, which must be quoted."
136
133
),
137
134
)
138
135
output_xml = optparse .make_option (
139
- '-o' , '' , action = 'store' , dest = "outfile" ,
140
- metavar = "OUTFILE" ,
136
+ '-o' , '' , action = 'store' , dest = "outfile" , metavar = "OUTFILE" ,
141
137
help = "Write the XML report to this file. Defaults to 'coverage.xml'" ,
142
138
)
143
139
output_json = optparse .make_option (
144
- '-o' , '' , action = 'store' , dest = "outfile" ,
145
- metavar = "OUTFILE" ,
140
+ '-o' , '' , action = 'store' , dest = "outfile" , metavar = "OUTFILE" ,
146
141
help = "Write the JSON report to this file. Defaults to 'coverage.json'" ,
147
142
)
148
143
output_lcov = optparse .make_option (
149
- '-o' , '' , action = 'store' , dest = 'outfile' ,
150
- metavar = "OUTFILE" ,
144
+ '-o' , '' , action = 'store' , dest = 'outfile' , metavar = "OUTFILE" ,
151
145
help = "Write the LCOV report to this file. Defaults to 'coverage.lcov'" ,
152
146
)
153
147
json_pretty_print = optparse .make_option (
@@ -199,8 +193,10 @@ class Opts:
199
193
)
200
194
sort = optparse .make_option (
201
195
'--sort' , action = 'store' , metavar = 'COLUMN' ,
202
- help = "Sort the report by the named column: name, stmts, miss, branch, brpart, or cover. " +
196
+ help = (
197
+ "Sort the report by the named column: name, stmts, miss, branch, brpart, or cover. " +
203
198
"Default is name."
199
+ ),
204
200
)
205
201
source = optparse .make_option (
206
202
'' , '--source' , action = 'store' , metavar = "SRC1,SRC2,..." ,
0 commit comments