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

Incompatibility with flake8 v6 #110

Closed
matthiasdiener opened this issue Nov 23, 2022 · 1 comment · Fixed by #111
Closed

Incompatibility with flake8 v6 #110

matthiasdiener opened this issue Nov 23, 2022 · 1 comment · Fixed by #111

Comments

@matthiasdiener
Copy link

$ pip freeze |grep flake
flake8==6.0.0
flake8-quotes==3.3.1
pyflakes==3.0.0

$ flake8
Traceback (most recent call last):
  File "/Users/mdiener/Work/emirge/miniforge3/envs/ceesd/bin/flake8", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/Users/mdiener/Work/emirge/miniforge3/envs/ceesd/lib/python3.11/site-packages/flake8/main/cli.py", line 23, in main
    app.run(argv)
  File "/Users/mdiener/Work/emirge/miniforge3/envs/ceesd/lib/python3.11/site-packages/flake8/main/application.py", line 198, in run
    self._run(argv)
  File "/Users/mdiener/Work/emirge/miniforge3/envs/ceesd/lib/python3.11/site-packages/flake8/main/application.py", line 186, in _run
    self.initialize(argv)
  File "/Users/mdiener/Work/emirge/miniforge3/envs/ceesd/lib/python3.11/site-packages/flake8/main/application.py", line 165, in initialize
    self.plugins, self.options = parse_args(argv)
                                 ^^^^^^^^^^^^^^^^
  File "/Users/mdiener/Work/emirge/miniforge3/envs/ceesd/lib/python3.11/site-packages/flake8/options/parse_args.py", line 51, in parse_args
    option_manager.register_plugins(plugins)
  File "/Users/mdiener/Work/emirge/miniforge3/envs/ceesd/lib/python3.11/site-packages/flake8/options/manager.py", line 259, in register_plugins
    add_options(self)
  File "/Users/mdiener/Work/emirge/miniforge3/envs/ceesd/lib/python3.11/site-packages/flake8_quotes/__init__.py", line 103, in add_options
    cls._register_opt(parser, '--quotes', action='store',
  File "/Users/mdiener/Work/emirge/miniforge3/envs/ceesd/lib/python3.11/site-packages/flake8_quotes/__init__.py", line 93, in _register_opt
    parser.add_option(*args, **kwargs)
  File "/Users/mdiener/Work/emirge/miniforge3/envs/ceesd/lib/python3.11/site-packages/flake8/options/manager.py", line 281, in add_option
    self._current_group.add_argument(*option_args, **option_kwargs)
  File "/Users/mdiener/Work/emirge/miniforge3/envs/ceesd/lib/python3.11/argparse.py", line 1448, in add_argument
    raise ValueError('%r is not callable' % (type_func,))
ValueError: 'choice' is not callable
tchaikov added a commit to tchaikov/ceph that referenced this issue Nov 24, 2022
to workaround zheller/flake8-quotes#110

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
tchaikov added a commit to tchaikov/ceph that referenced this issue Nov 24, 2022
to workaround zheller/flake8-quotes#110
flake8 v5.0.4 is the last known-to-work flake8 before flake8 v6.0.0.

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
tchaikov added a commit to tchaikov/ceph that referenced this issue Nov 24, 2022
to workaround zheller/flake8-quotes#110
flake8 v5.0.4 is the last known-to-work flake8 before flake8 v6.0.0.

Fixes: https://tracker.ceph.com/issues/58069
Signed-off-by: Kefu Chai <tchaikov@gmail.com>
@Avasam
Copy link

Avasam commented Nov 24, 2022

Not just "potential". It is incompatible. Small migration guide: PyCQA/flake8#1739

@matthiasdiener matthiasdiener changed the title Potential incompatibility with flake8 v6 Incompatibility with flake8 v6 Nov 24, 2022
ramosbugs added a commit to unflakable/unflakable-python that referenced this issue Nov 24, 2022
The new 6.0.0 release is incompatible with the latest version of
flake8-quotes (see zheller/flake8-quotes#110).
idryomov pushed a commit to idryomov/ceph that referenced this issue Nov 25, 2022
to workaround zheller/flake8-quotes#110
flake8 v5.0.4 is the last known-to-work flake8 before flake8 v6.0.0.

Fixes: https://tracker.ceph.com/issues/58069
Signed-off-by: Kefu Chai <tchaikov@gmail.com>
(cherry picked from commit ecb3fb1)
idryomov pushed a commit to idryomov/ceph that referenced this issue Nov 25, 2022
to workaround zheller/flake8-quotes#110
flake8 v5.0.4 is the last known-to-work flake8 before flake8 v6.0.0.

Fixes: https://tracker.ceph.com/issues/58069
Signed-off-by: Kefu Chai <tchaikov@gmail.com>
(cherry picked from commit ecb3fb1)
inducer added a commit to pyrometheus/pyrometheus that referenced this issue Nov 27, 2022
inducer added a commit to pyrometheus/pyrometheus that referenced this issue Nov 27, 2022
mdevaev added a commit to pikvm/kvmd that referenced this issue Nov 29, 2022
mdevaev added a commit to pikvm/ustreamer that referenced this issue Nov 29, 2022
matthiasdiener added a commit to illinois-ceesd/mirgecom that referenced this issue Nov 29, 2022
sukritkalra added a commit to erdos-project/erdos-scheduling-simulator that referenced this issue Dec 2, 2022
The plugin was never updated for the newer flake8 version.

See zheller/flake8-quotes#110
dkliban added a commit to dkliban/plugin_template that referenced this issue Dec 5, 2022
It's not compatible with flake8 6.0.0

zheller/flake8-quotes#110

[noissue]
dkliban added a commit to pulp/plugin_template that referenced this issue Dec 5, 2022
It's not compatible with flake8 6.0.0

zheller/flake8-quotes#110

[noissue]
pbelskiy added a commit to pbelskiy/aiojenkins that referenced this issue Dec 6, 2022
aaSharma14 pushed a commit to rhcs-dashboard/ceph that referenced this issue Feb 15, 2023
to workaround zheller/flake8-quotes#110
flake8 v5.0.4 is the last known-to-work flake8 before flake8 v6.0.0.

Fixes: https://tracker.ceph.com/issues/58069
Signed-off-by: Kefu Chai <tchaikov@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants