@@ -53,8 +53,7 @@ class Opts:
5353 help = "The context label to record for this coverage run." ,
5454 )
5555 contexts = optparse .make_option (
56- '' , '--contexts' , action = 'store' ,
57- metavar = "REGEX1,REGEX2,..." ,
56+ '' , '--contexts' , action = 'store' , metavar = "REGEX1,REGEX2,..." ,
5857 help = (
5958 "Only display data from lines covered in the given contexts. " +
6059 "Accepts Python regexes, which must be quoted."
@@ -102,8 +101,7 @@ class Opts:
102101 help = "Ignore errors while reading source files." ,
103102 )
104103 include = optparse .make_option (
105- '' , '--include' , action = 'store' ,
106- metavar = "PAT1,PAT2,..." ,
104+ '' , '--include' , action = 'store' , metavar = "PAT1,PAT2,..." ,
107105 help = (
108106 "Include only files whose paths match one of these patterns. " +
109107 "Accepts shell-style wildcards, which must be quoted."
@@ -128,26 +126,22 @@ class Opts:
128126 ),
129127 )
130128 omit = optparse .make_option (
131- '' , '--omit' , action = 'store' ,
132- metavar = "PAT1,PAT2,..." ,
129+ '' , '--omit' , action = 'store' , metavar = "PAT1,PAT2,..." ,
133130 help = (
134131 "Omit files whose paths match one of these patterns. " +
135132 "Accepts shell-style wildcards, which must be quoted."
136133 ),
137134 )
138135 output_xml = optparse .make_option (
139- '-o' , '' , action = 'store' , dest = "outfile" ,
140- metavar = "OUTFILE" ,
136+ '-o' , '' , action = 'store' , dest = "outfile" , metavar = "OUTFILE" ,
141137 help = "Write the XML report to this file. Defaults to 'coverage.xml'" ,
142138 )
143139 output_json = optparse .make_option (
144- '-o' , '' , action = 'store' , dest = "outfile" ,
145- metavar = "OUTFILE" ,
140+ '-o' , '' , action = 'store' , dest = "outfile" , metavar = "OUTFILE" ,
146141 help = "Write the JSON report to this file. Defaults to 'coverage.json'" ,
147142 )
148143 output_lcov = optparse .make_option (
149- '-o' , '' , action = 'store' , dest = 'outfile' ,
150- metavar = "OUTFILE" ,
144+ '-o' , '' , action = 'store' , dest = 'outfile' , metavar = "OUTFILE" ,
151145 help = "Write the LCOV report to this file. Defaults to 'coverage.lcov'" ,
152146 )
153147 json_pretty_print = optparse .make_option (
@@ -199,8 +193,10 @@ class Opts:
199193 )
200194 sort = optparse .make_option (
201195 '--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. " +
203198 "Default is name."
199+ ),
204200 )
205201 source = optparse .make_option (
206202 '' , '--source' , action = 'store' , metavar = "SRC1,SRC2,..." ,
0 commit comments