Skip to content

Commit 420c013

Browse files
committedMay 1, 2022
style: parens should indent the same as their opening line
1 parent 53f00a0 commit 420c013

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+164
-166
lines changed
 

‎ci/comment_on_fixes.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
comment = (
1414
f"This is now released as part of [coverage {version}]" +
1515
f"(https://pypi.org/project/coverage/{version})."
16-
)
16+
)
1717
print(f"Comment will be: {comment}")
1818

1919
owner = "nedbat"

‎coverage/cmdline.py

+11-13
Original file line numberDiff line numberDiff line change
@@ -232,9 +232,7 @@ class CoverageOptionParser(optparse.OptionParser):
232232
"""
233233

234234
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)
238236
self.set_defaults(
239237
# Keep these arguments alphabetized by their names.
240238
action=None,
@@ -267,7 +265,7 @@ def __init__(self, *args, **kwargs):
267265
timid=None,
268266
title=None,
269267
version=None,
270-
)
268+
)
271269

272270
self.disable_interspersed_args()
273271

@@ -352,7 +350,7 @@ def get_prog_name(self):
352350
Opts.debug,
353351
Opts.help,
354352
Opts.rcfile,
355-
]
353+
]
356354

357355
COMMANDS = {
358356
'annotate': CmdOptionParser(
@@ -473,7 +471,7 @@ def get_prog_name(self):
473471
Opts.output_lcov,
474472
Opts.omit,
475473
Opts.quiet,
476-
] + GLOBAL_ARGS,
474+
] + GLOBAL_ARGS,
477475
usage="[options] [modules]",
478476
description="Generate an LCOV report of coverage results.",
479477
),
@@ -648,7 +646,7 @@ def command_line(self, argv):
648646
check_preimported=True,
649647
context=options.context,
650648
messages=not options.quiet,
651-
)
649+
)
652650

653651
if options.action == "debug":
654652
return self.do_debug(args)
@@ -675,7 +673,7 @@ def command_line(self, argv):
675673
omit=omit,
676674
include=include,
677675
contexts=contexts,
678-
)
676+
)
679677

680678
# We need to be able to import from the current directory, because
681679
# plugins may try to, for example, to read Django settings.
@@ -692,7 +690,7 @@ def command_line(self, argv):
692690
skip_empty=options.skip_empty,
693691
sort=options.sort,
694692
**report_args
695-
)
693+
)
696694
elif options.action == "annotate":
697695
self.coverage.annotate(directory=options.directory, **report_args)
698696
elif options.action == "html":
@@ -704,25 +702,25 @@ def command_line(self, argv):
704702
show_contexts=options.show_contexts,
705703
title=options.title,
706704
**report_args
707-
)
705+
)
708706
elif options.action == "xml":
709707
total = self.coverage.xml_report(
710708
outfile=options.outfile,
711709
skip_empty=options.skip_empty,
712710
**report_args
713-
)
711+
)
714712
elif options.action == "json":
715713
total = self.coverage.json_report(
716714
outfile=options.outfile,
717715
pretty_print=options.pretty_print,
718716
show_contexts=options.show_contexts,
719717
**report_args
720-
)
718+
)
721719
elif options.action == "lcov":
722720
total = self.coverage.lcov_report(
723721
outfile=options.outfile,
724722
**report_args
725-
)
723+
)
726724
else:
727725
# There are no other possible actions.
728726
raise AssertionError

0 commit comments

Comments
 (0)
Please sign in to comment.