Closed apirogov closed 7 months ago
Heya - I've just merged a PR that drops toml
for tomli
(<py3.11) or tomllib
(>=py3.11). I'll keep this issue open until I make another release for 1.7.0 (queued for this month).
Released! feel free to re-open if this is still an issue.
Description of the bug
Using
interrogate
as a pre-commit hook:results in:
What you expected to happen
No exception at config loading.
How to reproduce (as minimally and precisely as possible)
Have mixed array in
pyproject.toml
, e.g.:which is in fact valid and used by poetry.
Anthing else we need to know?
The
toml
library is not TOML 1.0 compliant.To solve,
toml
should be replaced bytomli
(which is essentiallytomllib
which is standardized with Python 3.11)