Trying to parse a pyproject.toml that contains multi-line strings fails with
toml.decoder.TomlDecodeError: Invalid inline table value encountered
To reproduce, add any TOML multiline string to your pyproject.toml file, for example, we have this section
[tool.pdm.scripts]
# Linting utilities
check = {shell = """
flake8 foundation
isort --check --diff foundation
black --check foundation
pyright --warnings foundation
"""}
fmt = {shell = """
autoflake -i -r foundation
isort foundation
black foundation
"""}
Trying to parse a
pyproject.toml
that contains multi-line strings fails withTo reproduce, add any TOML multiline string to your
pyproject.toml
file, for example, we have this section