Skip to content

Commit

Permalink
Merge pull request #111 from alexfikl/port-flake8-v6.0
Browse files Browse the repository at this point in the history
Update add_options for flake8 6.0
  • Loading branch information
zheller authored Dec 9, 2022
2 parents ef0d9a9 + 46d1fdb commit 5e58744
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions flake8_quotes/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,19 +107,19 @@ def _register_opt(parser, *args, **kwargs):
@classmethod
def add_options(cls, parser):
cls._register_opt(parser, '--quotes', action='store',
parse_from_config=True, type='choice',
parse_from_config=True,
choices=sorted(cls.INLINE_QUOTES.keys()),
help='Deprecated alias for `--inline-quotes`')
cls._register_opt(parser, '--inline-quotes', default="'",
action='store', parse_from_config=True, type='choice',
action='store', parse_from_config=True,
choices=sorted(cls.INLINE_QUOTES.keys()),
help="Quote to expect in all files (default: ')")
cls._register_opt(parser, '--multiline-quotes', default=None, action='store',
parse_from_config=True, type='choice',
parse_from_config=True,
choices=sorted(cls.MULTILINE_QUOTES.keys()),
help='Quote to expect in all files (default: """)')
cls._register_opt(parser, '--docstring-quotes', default=None, action='store',
parse_from_config=True, type='choice',
parse_from_config=True,
choices=sorted(cls.DOCSTRING_QUOTES.keys()),
help='Quote to expect in all files (default: """)')
cls._register_opt(parser, '--avoid-escape', default=None, action='store_true',
Expand Down

1 comment on commit 5e58744

@mnogokotin
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please make a release )

Please sign in to comment.