setup-cfg-fmt............................................................Failed
- hook id: setup-cfg-fmt
- exit code: 1
Traceback (most recent call last):
File "/home/marco/.cache/pre-commit/repoowkkinfn/py_env-python3/bin/setup-cfg-fmt", line 8, in <module>
sys.exit(main())
File "/home/marco/.cache/pre-commit/repoowkkinfn/py_env-python3/lib/python3.8/site-packages/setup_cfg_fmt.py", line 456, in main
if format_file(
File "/home/marco/.cache/pre-commit/repoowkkinfn/py_env-python3/lib/python3.8/site-packages/setup_cfg_fmt.py", line 331, in format_file
cfg['metadata']['name'] = cfg['metadata']['name'].replace('-', '_')
File "/usr/lib/python3.8/configparser.py", line 960, in __getitem__
raise KeyError(key)
KeyError: 'metadata'
Here is my
setup.cfg
file:Here's the error from
pre-commit run --all
: