Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New flake8 6.0.0 fails if flake8-quotes 3.3.1 is installed too #1754

Closed
xqt opened this issue Nov 24, 2022 · 1 comment
Closed

New flake8 6.0.0 fails if flake8-quotes 3.3.1 is installed too #1754

xqt opened this issue Nov 24, 2022 · 1 comment
Labels

Comments

@xqt
Copy link

xqt commented Nov 24, 2022

how did you install flake8?

pip install flake8
pip install flake8-quotes

unmodified output of flake8 --bug-report

No output, see below

describe the problem

description

new flake8 6.0.0 fails if flake8-quotes 3.3.1 is installed

commands ran

flake8 --version
or
flake8 --bug-report

result:

D:\>flake8 --version
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "C:\Python311\Scripts\flake8.exe\__main__.py", line 7, in <module>
  File "C:\Python311\Lib\site-packages\flake8\main\cli.py", line 23, in main
    app.run(argv)
  File "C:\Python311\Lib\site-packages\flake8\main\application.py", line 198, in run
    self._run(argv)
  File "C:\Python311\Lib\site-packages\flake8\main\application.py", line 186, in _run
    self.initialize(argv)
  File "C:\Python311\Lib\site-packages\flake8\main\application.py", line 165, in initialize
    self.plugins, self.options = parse_args(argv)
                                 ^^^^^^^^^^^^^^^^
  File "C:\Python311\Lib\site-packages\flake8\options\parse_args.py", line 51, in parse_args
    option_manager.register_plugins(plugins)
  File "C:\Python311\Lib\site-packages\flake8\options\manager.py", line 259, in register_plugins
    add_options(self)
  File "C:\Python311\Lib\site-packages\flake8_quotes\__init__.py", line 109, in add_options
    cls._register_opt(parser, '--quotes', action='store',
  File "C:\Python311\Lib\site-packages\flake8_quotes\__init__.py", line 99, in _register_opt
    parser.add_option(*args, **kwargs)
  File "C:\Python311\Lib\site-packages\flake8\options\manager.py", line 281, in add_option
    self._current_group.add_argument(*option_args, **option_kwargs)
  File "C:\Python311\Lib\argparse.py", line 1448, in add_argument
    raise ValueError('%r is not callable' % (type_func,))
ValueError: 'choice' is not callable

D:\>

see CI test

@JJMC89
Copy link

JJMC89 commented Nov 24, 2022

Same issue as #1751 but for a different plugin. Already reported: zheller/flake8-quotes#110.

@PyCQA PyCQA locked as resolved and limited conversation to collaborators Nov 24, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants