Skip to content

[dependancy-groups] in pyproject.toml breaks toml loading #1073

@mickael-martinez-asdaex

Description

What happens?

Conflicts with uv usage of dependancy-groups: https://docs.astral.sh/uv/concepts/projects/dependencies/#dependency-groups.

%load_ext sql will send a cryptic error:
IndexError: list index out of range from toml package if the pyproject.toml contains a [dependancy-groups] section.

It seems to be related to toml package which has not been updated since long. Maybe change to another toml reader package or make an argument to not load the config file.

To Reproduce

To reproduce the error:

  1. Create a pyproject with a dependancy-groups
  2. Install jupysql
  3. launch the command %load_ext sql in jupyter notebook

OS:

Windows

JupySQL Version:

0.11.1

Full Name:

Mickael Martinez

Affiliation:

ASDAEX

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