Skip to content

fix(manager/pre-commit): allow leading zeros in semver-coerced versioning for CalVer support - #45272

Open
vivodi wants to merge 1 commit into
renovatebot:mainfrom
vivodi:CalVer
Open

fix(manager/pre-commit): allow leading zeros in semver-coerced versioning for CalVer support#45272
vivodi wants to merge 1 commit into
renovatebot:mainfrom
vivodi:CalVer

Conversation

@vivodi

@vivodi vivodi commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

Changes

Make semver-coerced versioning more permissive by allowing leading zeros, i.e. supporting calendar versioning.

pre-commit.ci bot can update Calendar Versioning dependencies (e.g. 2026.08.01 → 2026.08.08), but Renovate currently errors on such dependencies:

DEBUG: Dependency henryiii/validate-pyproject-schema-store has unsupported/unversioned value 2026.08.01 (versioning=semver-coerced)

This PR makes Renovate behave like the pre-commit.ci bot, allowing it to correctly update dependencies with leading zeros.

Context

Please select one of the following:

AI assistance disclosure

Did you use AI tools to create any part of this pull request?

Please select one option and, if yes, briefly describe how AI was used (e.g., code, tests, docs) and which tool(s) you used.

  • No — I did not use AI for this contribution.
  • Yes — minimal assistance (e.g., IDE autocomplete, small code completions, grammar fixes).
  • Yes — substantive assistance (AI-generated non‑trivial portions of code, tests, or documentation).
  • Yes — other (please describe):

Use of AI in replying to PR comments

Who answers review comments:

  • @vivodi will read and reply directly.
  • An agent will draft replies and @username will read them before they are posted. Name the account.
  • Nobody has explicitly committed to replying.

Documentation (please check one with an [x])

  • I have updated the documentation, or
  • No documentation update is required

How I've tested my work (please select one)

I have verified these changes via:

  • Code inspection only, or
  • Newly added/modified unit tests, or
  • No unit tests, but ran on a real repository, or
  • Both unit tests + ran on a real repository

The public repository: https://github.com/vivodi/loose-semver-coerced

@github-actions
github-actions Bot requested a review from viceice August 13, 2026 18:57
@vivodi vivodi changed the title Allow leading zeros in semver-coerced versioning for CalVer support fix(manager/pre-commit): allow leading zeros in semver-coerced versioning for CalVer support Aug 13, 2026
Make semver-coerced versioning more permissive by allowing leading zeros, i.e. supporting calendar versioning.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

pre-commit: semver-coerced fails to parse CalVer tags with leading zeros (e.g., 2025.08.07)

1 participant