[...]
File "/my-proj/.tox/lint/lib/python3.8/site-packages/flake8/options/config.py", line 66, in _read_config
found_files.extend(config.read(filename))
File "/usr/lib/python3.8/configparser.py", line 697, in read
self._read(fp, filename)
File "/my-proj/.tox/lint/lib/python3.8/site-packages/pflake8/__init__.py", line 30, in _read
for key, value in section_to_copy.items():
AttributeError: 'list' object has no attribute 'items'
pflake8 my_file.py
(ran by tox) fails with:My pyproject.toml file contains only:
It looks to me like an obvious tiny bug; the default value of
toml_config.get('tool')
should not be[]
but{}