Skip to content

Default options for pyproject.toml #363

@jhaisley

Description

@jhaisley

It would be better if bump-my-version was able to operate on a default pyproject.toml without a config file.

It already works if [bumpversion] with no options is added to pyproject.toml.

with [bumpversion]
(test-dir) D:\dev\tmp\test-dir [main +0 ~1 -0 !]> uvx bump-my-version show-bump
0.1.1 ── bump ─┬─ major ─ 1.0.0
├─ minor ─ 0.2.0
╰─ patch ─ 0.1.2

without [bumpversion]
(test-dir) D:\dev\tmp\test-dir [main +0 ~1 -0 !]> uvx bump-my-version show-bump

Usage: bump-my-version show-bump [OPTIONS] [VERSION]

Try 'bump-my-version show-bump -h' for help
╭─ Error ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ Unable to determine the current version. │
╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯

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