Skip to content

Fix parsing error for mixing inline tables with strings in the same array in pyproject.toml #207

Description

@TALLEC-Scott

Hello,

scip‑python fails to parse pyproject.toml files that use PEP 735 dependency groups with the {include‑group = "..."} syntax, resulting in a TOML parsing error followed by a crash.

const TOML = require('@iarna/toml');
const content = \`
  [dependency-groups]
  dev = [
    {include-group = \"test\"},
    \"ml_stack_document_extraction\",
  ]
  \`;


  try {
    const result = TOML.parse(content);
    console.log('SUCCESS:', JSON.stringify(result, null, 2));
  } catch (e) {
    console.log('ERROR:', JSON.stringify(e));
  }

Output:

ERROR: {"name":"TomlError","fromTOML":true,"wrapped":null,"line":4,"col":34,"pos":94}

this lib does not support valid TOML 1.0 syntax

This means I can't use gitlab's code intelligence on uv project using scip-python which the gitlab component uses.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions