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

FlexMeasures / flexmeasures-client / 42501082960
95%

Build:
DEFAULT BRANCH: main
Ran 08 Nov 2026 04:41PM UTC
Jobs 12
Files 21
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

08 Nov 2026 04:40PM UTC coverage: 94.941% (-0.7%) from 95.681%
42501082960

push

github

web-flow
feat(S2): #188 finished, reconciled onto main (1 of 2) (#278)

* fix(TUNES): record a leakage behaviour instead of refusing it

FillRateBasedControlTUNES.send_leakage_behaviour read its fill-level scale from
self._fill_level_scalefill_level_scale, an attribute name pasted in twice, which
has been there since #158. The AttributeError that raised was caught by the
handler's broad except as if the post had failed, so every FRBC.LeakageBehaviour
was answered with PERMANENT_ERROR and none was ever recorded.

mypy could not see it: the type-check task only looks at files that contain
`from typing import`, and the FRBC base class is not one of them, so the
attribute lookup went to Any. The next commit widens that.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CcpawsJs74cSwFLXkz7ZwW
Signed-off-by: F.N. Claessen <claessen@seita.nl>

* chore(types): check every source file, including untyped function bodies

The type-check task fed mypy only the files that contain `from typing import`,
which were seven of eighteen, and left out frbc_simple.py, both control-type
__init__.py files and the example scripts. With --follow-imports skip, anything
those files defined then looked like Any to the files that were checked, which
is how the previous commit's misspelt attribute went unnoticed since #158.

It now checks all of src, and with --check-untyped-defs, so the bodies of
functions without annotations are checked too. What that surfaced, besides the
attribute fixed in the previous commit:

- get_access_token stored a token whose type could be None and then used it as a
  header value; it now returns the token, so the caller holds a str.
- get_access_token and get_versions indexed a response typed as a dict or a list;
  each now says so plainly when the server answers with something other than an
  object, instead of failing on the lookup.
- The S2 translations annotated their resolution as a string while frbc_... (continued)

816 of 822 new or added lines in 15 files covered. (99.27%)

1 existing line in 1 file now uncovered.

2909 of 3064 relevant lines covered (94.94%)

4.64 hits per line

Uncovered Changes

Lines Coverage ∆ File
3
93.02
src/flexmeasures_client/s2/script/websockets_client.py
2
97.73
src/flexmeasures_client/s2/site.py
1
96.0
src/flexmeasures_client/s2/clock.py

Coverage Regressions

Lines Coverage ∆ File
1
93.68
-0.43% src/flexmeasures_client/response_handling.py
Jobs
ID Job ID Ran Files Coverage
1 ubuntu-latest - py3.13 - 42501082960.1 08 Nov 2026 04:41PM UTC 21
32.77
GitHub Action Run
2 ubuntu-latest - py3.10 - 42501082960.2 08 Nov 2026 04:41PM UTC 21
32.77
GitHub Action Run
3 s2 - py3.14 - 42501082960.3 08 Nov 2026 04:41PM UTC 21
68.59
GitHub Action Run
4 macos-latest - py3.13 - 42501082960.4 08 Nov 2026 04:41PM UTC 21
32.77
GitHub Action Run
5 ubuntu-latest - py3.11 - 42501082960.5 08 Nov 2026 04:41PM UTC 21
32.77
GitHub Action Run
6 s2 - py3.10 - 42501082960.6 08 Nov 2026 04:41PM UTC 21
69.16
GitHub Action Run
7 macos-latest - py3.14 - 42501082960.7 08 Nov 2026 04:41PM UTC 21
33.37
GitHub Action Run
8 ubuntu-latest - py3.12 - 42501082960.8 08 Nov 2026 04:41PM UTC 21
32.77
GitHub Action Run
9 macos-latest - py3.11 - 42501082960.9 08 Nov 2026 04:41PM UTC 21
32.77
GitHub Action Run
10 macos-latest - py3.12 - 42501082960.10 08 Nov 2026 04:41PM UTC 21
32.77
GitHub Action Run
11 macos-latest - py3.10 - 42501082960.11 08 Nov 2026 04:41PM UTC 21
32.77
GitHub Action Run
12 ubuntu-latest - py3.14 - 42501082960.12 08 Nov 2026 04:41PM UTC 21
33.37
GitHub Action Run
Source Files on build 42501082960
  • Tree
  • List 21
  • Changed 4
  • Source Changed 2
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #42501082960
  • 1e214227 on github
  • Prev Build on main (#42011499910)
  • Delete
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