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
Option processing in flake8 versions prior 3.7.8 differs from later option processing, and defaults of nested class whitelist options break flake8 at startup.
I bisected this problem to flake8 commit fb7e9338cd06760a2f9096f976f0e246fc36a09e, when changes in flake8/utils.py function parse_comma_separated_list were made.
To solve this problem either minimal flake8 version should be increased to 3.7.8 or type of nested class whitelist option defaults should be changed.
$ flake8
Traceback (most recent call last):
File "/nix/store/xp46dxgjkz9l5plhzjgm3p9isgdv2mjq-python3.7-flake8-3.7.7/bin/.flake8-wrapped", line 11, in <module>
sys.exit(main())
File "/nix/store/xp46dxgjkz9l5plhzjgm3p9isgdv2mjq-python3.7-flake8-3.7.7/lib/python3.7/site-packages/flake8/main/cli.py", line 18, in main
app.run(argv)
File "/nix/store/xp46dxgjkz9l5plhzjgm3p9isgdv2mjq-python3.7-flake8-3.7.7/lib/python3.7/site-packages/flake8/main/application.py", line 394, in run
self._run(argv)
File "/nix/store/xp46dxgjkz9l5plhzjgm3p9isgdv2mjq-python3.7-flake8-3.7.7/lib/python3.7/site-packages/flake8/main/application.py", line 381, in _run
self.initialize(argv)
File "/nix/store/xp46dxgjkz9l5plhzjgm3p9isgdv2mjq-python3.7-flake8-3.7.7/lib/python3.7/site-packages/flake8/main/application.py", line 366, in initialize
self.parse_configuration_and_cli(argv)
File "/nix/store/xp46dxgjkz9l5plhzjgm3p9isgdv2mjq-python3.7-flake8-3.7.7/lib/python3.7/site-packages/flake8/main/application.py", line 219, in parse_configuration_and_cli
self.option_manager, self.config_finder, argv
File "/nix/store/xp46dxgjkz9l5plhzjgm3p9isgdv2mjq-python3.7-flake8-3.7.7/lib/python3.7/site-packages/flake8/options/aggregator.py", line 33, in aggregate_options
default_values, _ = manager.parse_args([], values=values)
File "/nix/store/xp46dxgjkz9l5plhzjgm3p9isgdv2mjq-python3.7-flake8-3.7.7/lib/python3.7/site-packages/flake8/options/manager.py", line 312, in parse_args
self._normalize(options)
File "/nix/store/xp46dxgjkz9l5plhzjgm3p9isgdv2mjq-python3.7-flake8-3.7.7/lib/python3.7/site-packages/flake8/options/manager.py", line 305, in _normalize
setattr(options, option.dest, option.normalize(old_value))
File "/nix/store/xp46dxgjkz9l5plhzjgm3p9isgdv2mjq-python3.7-flake8-3.7.7/lib/python3.7/site-packages/flake8/options/manager.py", line 151, in normalize
return utils.parse_comma_separated_list(value)
File "/nix/store/xp46dxgjkz9l5plhzjgm3p9isgdv2mjq-python3.7-flake8-3.7.7/lib/python3.7/site-packages/flake8/utils.py", line 44, in parse_comma_separated_list
value = regexp.split(value)
TypeError: expected string or bytes-like object
Bug report
What's wrong
Option processing in flake8 versions prior 3.7.8 differs from later option processing, and defaults of nested class whitelist options break flake8 at startup.
I bisected this problem to flake8 commit fb7e9338cd06760a2f9096f976f0e246fc36a09e, when changes in flake8/utils.py function parse_comma_separated_list were made.
To solve this problem either minimal flake8 version should be increased to 3.7.8 or type of nested class whitelist option defaults should be changed.
How is that should be
flake8 should work.
System information
NixOS 19.09.1484.84586a4514d (Loris)
flake8 information
flake8 --bug-report
fails with the same errorpip information
Contents of
pip freeze
:The text was updated successfully, but these errors were encountered: