Skip to content

In pyproject.toml boolean values doesn't work #1694

@un-but

Description

@un-but

Describe the bug
When I insert recursive_version_locations = false into pyproject.toml raises FAILED: unsupported TOML value type

Expected behavior
Working migration creation with recursive_version_locations = false

To Reproduce
Insert recursive_version_locations = false into [tool.alembic] in pyproject.toml.

Error
FAILED: unsupported TOML value type

Versions.

  • OS: Alt Linux Workstation 11.0
  • Python: 3.12.7
  • Alembic: 1.16.2
  • SQLAlchemy: 2.0.41
  • Database: PostgreSQL 17.5
  • DBAPI: asyncpg 0.30.0

Additional context
The solution to the problem is to wrap the boolean value in quotation marks:

recursive_version_locations = "false"

Have a nice day!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions