Skip to content

Fix(ci-testing): Fix tox depency flake8 to version to 5.0.4

Gerard Funosas requested to merge fix-flake8-version into master

New release 6.0.0 (2022-11-23) gives this error when called with tox:

pep8 run-test: commands[0] | flake8
Traceback (most recent call last):
  File "/home/gfunosas/Escriptori/dev/OTRS/otrs-somconnexio/.tox/pep8/bin/flake8", line 8, in <module>
    sys.exit(main())
  File "/home/gfunosas/Escriptori/dev/OTRS/otrs-somconnexio/.tox/pep8/lib/python3.8/site-packages/flake8/main/cli.py", line 23, in main
    app.run(argv)
  File "/home/gfunosas/Escriptori/dev/OTRS/otrs-somconnexio/.tox/pep8/lib/python3.8/site-packages/flake8/main/application.py", line 198, in run
    self._run(argv)
  File "/home/gfunosas/Escriptori/dev/OTRS/otrs-somconnexio/.tox/pep8/lib/python3.8/site-packages/flake8/main/application.py", line 186, in _run
    self.initialize(argv)
  File "/home/gfunosas/Escriptori/dev/OTRS/otrs-somconnexio/.tox/pep8/lib/python3.8/site-packages/flake8/main/application.py", line 165, in initialize
    self.plugins, self.options = parse_args(argv)
  File "/home/gfunosas/Escriptori/dev/OTRS/otrs-somconnexio/.tox/pep8/lib/python3.8/site-packages/flake8/options/parse_args.py", line 51, in parse_args
    option_manager.register_plugins(plugins)
  File "/home/gfunosas/Escriptori/dev/OTRS/otrs-somconnexio/.tox/pep8/lib/python3.8/site-packages/flake8/options/manager.py", line 259, in register_plugins
    add_options(self)
  File "/home/gfunosas/Escriptori/dev/OTRS/otrs-somconnexio/.tox/pep8/lib/python3.8/site-packages/flake8_quotes/__init__.py", line 109, in add_options
    cls._register_opt(parser, '--quotes', action='store',
  File "/home/gfunosas/Escriptori/dev/OTRS/otrs-somconnexio/.tox/pep8/lib/python3.8/site-packages/flake8_quotes/__init__.py", line 99, in _register_opt
    parser.add_option(*args, **kwargs)
  File "/home/gfunosas/Escriptori/dev/OTRS/otrs-somconnexio/.tox/pep8/lib/python3.8/site-packages/flake8/options/manager.py", line 281, in add_option
    self._current_group.add_argument(*option_args, **option_kwargs)
  File "/home/gfunosas/.pyenv/versions/3.8.2/lib/python3.8/argparse.py", line 1373, in add_argument
    raise ValueError('%r is not callable' % (type_func,))
ValueError: 'choice' is not callable
ERROR: InvocationError for command /home/gfunosas/Escriptori/dev/OTRS/otrs-somconnexio/.tox/pep8/bin/flake8 (exited with code 1)
Edited by Gerard Funosas

Merge request reports

Loading