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

FlexMeasures / flexmeasures / 42821473682
88%

Build:
DEFAULT BRANCH: main
Ran 10 Nov 2026 01:12PM UTC
Jobs 1
Files 195
Run time 1min
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

10 Nov 2026 01:06PM UTC coverage: 87.894% (+0.02%) from 87.876%
42821473682

push

github

web-flow
Stop python-dotenv warning about flexmeasures.cfg on startup (#2845)

* Read FLEXMEASURES_ENV from flexmeasures.cfg as Python, not as a dotenv file

The config file is Python, so python-dotenv warned "could not parse statement" about any line that is not a plain assignment, such as an import on its first line.
Since #2811 the Docker image finds its mounted config again, so every container logged this warning on startup.
Now the file is parsed with ast, without running it, and only a top-level string literal counts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: F.N. Claessen <claessen@seita.nl>

* Changelog: no python-dotenv warning about flexmeasures.cfg on startup

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: F.N. Claessen <claessen@seita.nl>

* Leave the OpenAPI spec's version alone, as this PR does not change the API

The generate-openapi-specs hook stamped it with the development version.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: F.N. Claessen <claessen@seita.nl>

* Read FLEXMEASURES_ENV from a flexmeasures.cfg saved with a byte order mark

Parsing the decoded text kept the BOM, so the parse failed and the app silently ran in production; parsing the bytes honours a BOM and a coding declaration, as running the file does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: F.N. Claessen <claessen@seita.nl>

* Warn when flexmeasures.cfg does not plainly set FLEXMEASURES_ENV, and let its last assignment win

A cfg that cannot be read or parsed, or that sets FLEXMEASURES_ENV to an expression, used to fall back to the default environment silently.
A later assignment of an expression now also undoes an earlier string literal, as it does when the file runs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: F.N. Claessen <claessen@seita.nl>

---------

Signed-off-by: F.N. Claessen <claessen@seita.nl>
Co-authored-by: Claude Opus 5.5 <n... (continued)

26 of 26 new or added lines in 1 file covered. (100.0%)

23291 of 26499 relevant lines covered (87.89%)

0.88 hits per line

Jobs
ID Job ID Ran Files Coverage
1 42821473682.1 10 Nov 2026 01:12PM UTC 195
87.89
GitHub Action Run
Source Files on build 42821473682
  • Tree
  • List 195
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #42821473682
  • 4c442ecb on github
  • Prev Build on main (#42803193113)
  • Next Build on main (#42822916993)
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