Skip to content

alembic init with pyproject template, and existing pyproject.toml, does not have a newline #1679

@jvanasco

Description

@jvanasco

Given an existing pyproject.toml:

[tool.black]
target-version = ['py37']

[tool.mypy]
python_version = "3.10"

The alembic command::

alembic init --template pyproject alembic

Modifies the file to contain::

[tool.black]
target-version = ['py37']

[tool.mypy]
python_version = "3.10"[tool.alembic]

# path to migration scripts.

Note the lack of newline(s) before [tool.alembic]. Ideally there should be 2.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions