jendrikseipp / vulture

Find dead Python code

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TOML parsing fails with multi-line strings

mcobzarenco opened this issue · comments

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
"""}

This sounds like a problem in the toml library. Please report this problem directly to the Python toml project: https://github.com/uiri/toml