Skip to content

Incorrect Update in Project (pyproject) #19

@martient

Description

@martient

There is an issue where the update logic is incorrectly impacting parts of the pyproject file. The update should only modify the version="XXX" field, but currently, it seems to be affecting other sections as well.

Image

Steps to Reproduce:
1. Run committy tag --bump-files with a pyproject file.
2. Observe that fields other than version="XXX" are being updated unexpectedly.

Expected Behavior:
• Only the version="XXX" field in the pyproject file should be updated.

Actual Behavior:
• Other fields in the pyproject file are being altered, leading to unintended changes.

Tasks:

  • Fix the logic to ensure only version="XXX" is updated.
  • Add test cases to prevent regressions in the future.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions