You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ flake8 --bug-report
Traceback (most recent call last):
File "/home/classic/tmp/foo/.venv/bin/flake8", line 8, in <module>
sys.exit(main())
File "/home/classic/tmp/foo/.venv/lib/python3.10/site-packages/flake8/main/cli.py", line 23, in main
app.run(argv)
File "/home/classic/tmp/foo/.venv/lib/python3.10/site-packages/flake8/main/application.py", line 198, in run
self._run(argv)
File "/home/classic/tmp/foo/.venv/lib/python3.10/site-packages/flake8/main/application.py", line 186, in _run
self.initialize(argv)
File "/home/classic/tmp/foo/.venv/lib/python3.10/site-packages/flake8/main/application.py", line 165, in initialize
self.plugins, self.options = parse_args(argv)
File "/home/classic/tmp/foo/.venv/lib/python3.10/site-packages/flake8/options/parse_args.py", line 51, in parse_args
option_manager.register_plugins(plugins)
File "/home/classic/tmp/foo/.venv/lib/python3.10/site-packages/flake8/options/manager.py", line 259, in register_plugins
add_options(self)
File "/home/classic/tmp/foo/.venv/lib/python3.10/site-packages/flake8_import_order/flake8_linter.py", line 44, in add_options
register_opt(
File "/home/classic/tmp/foo/.venv/lib/python3.10/site-packages/flake8_import_order/flake8_linter.py", line 98, in register_opt
parser.add_option(*args, **kwargs)
File "/home/classic/tmp/foo/.venv/lib/python3.10/site-packages/flake8/options/manager.py", line 281, in add_option
self._current_group.add_argument(*option_args, **option_kwargs)
File "/opt/python-3.10.0/lib/python3.10/argparse.py", line 1423, in add_argument
raise ValueError('%r is not callable' % (type_func,))
ValueError: 'string' is not callable
describe the problem
argument parsing in flake8 is broken as of the just-released version 6.0.0; I took a look in flake8-import-order and it seems to be following flake8's extension API correctly in this regard
...
sample code
importstringimportmath
commands ran
$ flake8 test.py
The text was updated successfully, but these errors were encountered:
how did you install flake8?
unmodified output of
flake8 --bug-report
describe the problem
argument parsing in flake8 is broken as of the just-released version 6.0.0; I took a look in flake8-import-order and it seems to be following flake8's extension API correctly in this regard
...
sample code
commands ran
$ flake8 test.py
The text was updated successfully, but these errors were encountered: