Skip to content

Bug: can not read toml with {include-group="xxx"} #451

@samialfattani

Description

@samialfattani

it shows runtime error when the file includes {include-group="xxx"}

  with open("pyproject.toml", "r", encoding="utf-8") as f:
      # raise error if {include-group="pre-commit"} is present in pyproject.toml, because toml library does not support it.
      data = toml.load(f)
[project]
name="Vendor"
version="1.0.449"
requires-python=">=3.13"
description = "Dealer Remake Project using Flask-Admin"
readme = "README.md"
authors = [{ name = "Eng. Sami Alfattany", email = "alfattanysa@rayafinancing.com"}]
dependencies = [
  "flask>=3.1",
  "Flask-WTF>=1.2",
  "requests>=2.32",
  "flask-babel>=4.0",
  "cryptography>=46.0",
  "waitress>=3.0",
  "dotenv>=0.9",
  "flask-bcrypt>=1.0",
  "flask-sqlalchemy>=3.1",
  "toml>=0.10",
 

[dependency-groups]
dev = [
  "pyyaml>=6.0.3",
  "pytest>=7.2",
  "selenium>=4.38",
  {include-group="pre-commit"}
]
pre-commit = [
  "pre-commit",
  "pre-commit-uv",
]

toml version: toml 0.10.2 is used

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions