@@ -232,9 +232,7 @@ class CoverageOptionParser(optparse.OptionParser):
232
232
"""
233
233
234
234
def __init__ (self , * args , ** kwargs ):
235
- super ().__init__ (
236
- add_help_option = False , * args , ** kwargs
237
- )
235
+ super ().__init__ (add_help_option = False , * args , ** kwargs )
238
236
self .set_defaults (
239
237
# Keep these arguments alphabetized by their names.
240
238
action = None ,
@@ -267,7 +265,7 @@ def __init__(self, *args, **kwargs):
267
265
timid = None ,
268
266
title = None ,
269
267
version = None ,
270
- )
268
+ )
271
269
272
270
self .disable_interspersed_args ()
273
271
@@ -352,7 +350,7 @@ def get_prog_name(self):
352
350
Opts .debug ,
353
351
Opts .help ,
354
352
Opts .rcfile ,
355
- ]
353
+ ]
356
354
357
355
COMMANDS = {
358
356
'annotate' : CmdOptionParser (
@@ -473,7 +471,7 @@ def get_prog_name(self):
473
471
Opts .output_lcov ,
474
472
Opts .omit ,
475
473
Opts .quiet ,
476
- ] + GLOBAL_ARGS ,
474
+ ] + GLOBAL_ARGS ,
477
475
usage = "[options] [modules]" ,
478
476
description = "Generate an LCOV report of coverage results." ,
479
477
),
@@ -648,7 +646,7 @@ def command_line(self, argv):
648
646
check_preimported = True ,
649
647
context = options .context ,
650
648
messages = not options .quiet ,
651
- )
649
+ )
652
650
653
651
if options .action == "debug" :
654
652
return self .do_debug (args )
@@ -675,7 +673,7 @@ def command_line(self, argv):
675
673
omit = omit ,
676
674
include = include ,
677
675
contexts = contexts ,
678
- )
676
+ )
679
677
680
678
# We need to be able to import from the current directory, because
681
679
# plugins may try to, for example, to read Django settings.
@@ -692,7 +690,7 @@ def command_line(self, argv):
692
690
skip_empty = options .skip_empty ,
693
691
sort = options .sort ,
694
692
** report_args
695
- )
693
+ )
696
694
elif options .action == "annotate" :
697
695
self .coverage .annotate (directory = options .directory , ** report_args )
698
696
elif options .action == "html" :
@@ -704,25 +702,25 @@ def command_line(self, argv):
704
702
show_contexts = options .show_contexts ,
705
703
title = options .title ,
706
704
** report_args
707
- )
705
+ )
708
706
elif options .action == "xml" :
709
707
total = self .coverage .xml_report (
710
708
outfile = options .outfile ,
711
709
skip_empty = options .skip_empty ,
712
710
** report_args
713
- )
711
+ )
714
712
elif options .action == "json" :
715
713
total = self .coverage .json_report (
716
714
outfile = options .outfile ,
717
715
pretty_print = options .pretty_print ,
718
716
show_contexts = options .show_contexts ,
719
717
** report_args
720
- )
718
+ )
721
719
elif options .action == "lcov" :
722
720
total = self .coverage .lcov_report (
723
721
outfile = options .outfile ,
724
722
** report_args
725
- )
723
+ )
726
724
else :
727
725
# There are no other possible actions.
728
726
raise AssertionError
0 commit comments