Skip to content

Commit

Permalink
Use alternative parse_options signature.
Browse files Browse the repository at this point in the history
Flake8 has two choices here, first it tries
parse_options(optmanager, options, extra_args)
and if that fails with a TypeError, does
parse_options(options)

If parse_options fails, we get a cleaner single
exception if we use the first form - easier for
debugging.
  • Loading branch information
peterjc committed May 18, 2020
1 parent 670e381 commit 4ce5bfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flake8_black.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def add_options(cls, parser):
)

@classmethod
def parse_options(cls, options):
def parse_options(cls, optmanager, options, extra_args):
"""Adding black-config option."""
# We have one and only one flake8 plugin configuration
if options.black_config is None:
Expand Down

0 comments on commit 4ce5bfb

Please sign in to comment.