• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

FlexMeasures / flexmeasures / 34368219394 / 1
86%
main: 86%

Build:
DEFAULT BRANCH: main
Ran 09 Sep 2026 03:20PM UTC
Files 183
Run time 11s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

09 Sep 2026 03:07PM UTC coverage: 85.202% (-0.003%) from 85.205%
34368219394.1

push

github

web-flow
Fix/guess next version (#2508)

* Refresh the flexmeasures package before regenerating OpenAPI specs

hatch-vcs computes the dynamic version from the closest reachable tag, but an
editable install only captures that computation once, at `uv sync` time - it
does not recompute on every `uv run`. A contributor whose venv was created (or
last synced) before a new tag landed therefore commits a stale
`openapi-specs.json` version field whenever the hook fires, without any error:
that is what happened after v1.1.0rc1 was tagged, where the file kept reading
"1.0.1" (guessed from v1.0.0) for several more commits instead of "1.1.0rc2".

Reinstalling just the flexmeasures package (not its dependencies) before
generating the spec is cheap (~1.5s) and forces hatch-vcs to recompute the
version from the current git state. The hook still no-ops in GitHub Actions.

Signed-off-by: F.N. Claessen <claessen@seita.nl>

* Parse the OpenAPI spec's version instead of splitting on dots

```.```.join(fm_version.split(".")[:3])``` mistook a pre-release suffix glued
onto the patch number for part of the version itself: for `1.1.0rc2.dev11+...`
it kept "1.1.0rc2" instead of "1.1.0", because PEP 440 attaches a pre-release
letter directly to the patch number (no dot), unlike the `.devN` segment. Use
`packaging.version.Version` to pull out major/minor/micro properly instead.

`packaging` was previously only a transitive dependency (via apispec, already
a hard dependency here) - declare it directly, since the code now imports it.

Signed-off-by: F.N. Claessen <claessen@seita.nl>

---------

Signed-off-by: F.N. Claessen <claessen@seita.nl>

18799 of 22064 relevant lines covered (85.2%)

0.85 hits per line

Source Files on job 34368219394.1
  • Tree
  • List 183
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 34368219394
  • ff871a68 on github
  • Prev Job for on main (#34363168965.1)
  • Next Job for on main (#34368536644.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc