Skip to content

Generated pyproject.toml is invalid #78

@paolodina

Description

@paolodina

The error is shown in VS Code from the linter.

Additional properties are not allowed ('ellar' was unexpected)Even Better TOML

pyproject toml

The file is parseable:

In [1]: from tomlkit import parse

In [2]: foo="""
   ...: [ellar]
   ...: default = "new_project"
   ...: """

In [3]: parse(foo)
Out[3]: {'ellar': {'default': 'new_project'}}

but trying with validate-pyproject the error again.

$ validate-pyproject pyproject.toml 
Invalid file: pyproject.toml
[ERROR] `data` must not contain {'ellar'} properties

Not sure if it's a real problem, though ellar-cli relies on this nomenclature in pyproject.toml to handle the multi-project if I'm not mistaken.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions