Skip to content

Commit 1986665

Browse files
authored
Bump the required group across 1 directory with 12 updates (frequenz-floss#1094)
Bumps the required group with 12 updates in the / directory: | Package | From | To | | --- | --- | --- | | [pydoclint](https://github.com/jsh9/pydoclint) | `0.5.6` | `0.5.9` | | [black](https://github.com/psf/black) | `24.8.0` | `24.10.0` | | [mkdocs-macros-plugin](https://github.com/fralau/mkdocs_macros_plugin) | `1.0.5` | `1.3.7` | | [mkdocs-material](https://github.com/squidfunk/mkdocs-material) | `9.5.34` | `9.5.43` | | [mkdocstrings[python]](https://github.com/mkdocstrings/mkdocstrings) | `0.25.2` | `0.26.2` | | [mkdocstrings-python](https://github.com/mkdocstrings/python) | `1.10.9` | `1.12.2` | | [mypy](https://github.com/python/mypy) | `1.11.2` | `1.13.0` | | [types-protobuf](https://github.com/python/typeshed) | `5.27.0.20240626` | `5.28.3.20241030` | | [nox](https://github.com/wntrblm/nox) | `2024.4.15` | `2024.10.9` | | [pylint](https://github.com/pylint-dev/pylint) | `3.2.7` | `3.3.1` | | [pytest](https://github.com/pytest-dev/pytest) | `8.3.2` | `8.3.3` | | [hypothesis](https://github.com/HypothesisWorks/hypothesis) | `6.111.2` | `6.116.0` | Updates `pydoclint` from 0.5.6 to 0.5.9 - [Release notes](https://github.com/jsh9/pydoclint/releases) - [Changelog](https://github.com/jsh9/pydoclint/blob/main/CHANGELOG.md) - [Commits](jsh9/pydoclint@0.5.6...0.5.9) Updates `black` from 24.8.0 to 24.10.0 - [Release notes](https://github.com/psf/black/releases) - [Changelog](https://github.com/psf/black/blob/main/CHANGES.md) - [Commits](psf/black@24.8.0...24.10.0) Updates `mkdocs-macros-plugin` from 1.0.5 to 1.3.7 - [Release notes](https://github.com/fralau/mkdocs_macros_plugin/releases) - [Changelog](https://github.com/fralau/mkdocs-macros-plugin/blob/master/CHANGELOG.md) - [Commits](fralau/mkdocs-macros-plugin@v1.0.5...v1.3.7) Updates `mkdocs-material` from 9.5.34 to 9.5.43 - [Release notes](https://github.com/squidfunk/mkdocs-material/releases) - [Changelog](https://github.com/squidfunk/mkdocs-material/blob/master/CHANGELOG) - [Commits](squidfunk/mkdocs-material@9.5.34...9.5.43) Updates `mkdocstrings[python]` from 0.25.2 to 0.26.2 - [Release notes](https://github.com/mkdocstrings/mkdocstrings/releases) - [Changelog](https://github.com/mkdocstrings/mkdocstrings/blob/main/CHANGELOG.md) - [Commits](mkdocstrings/mkdocstrings@0.25.2...0.26.2) Updates `mkdocstrings-python` from 1.10.9 to 1.12.2 - [Release notes](https://github.com/mkdocstrings/python/releases) - [Changelog](https://github.com/mkdocstrings/python/blob/main/CHANGELOG.md) - [Commits](mkdocstrings/python@1.10.9...1.12.2) Updates `mypy` from 1.11.2 to 1.13.0 - [Changelog](https://github.com/python/mypy/blob/master/CHANGELOG.md) - [Commits](python/mypy@v1.11.2...v1.13.0) Updates `types-protobuf` from 5.27.0.20240626 to 5.28.3.20241030 - [Commits](https://github.com/python/typeshed/commits) Updates `nox` from 2024.4.15 to 2024.10.9 - [Release notes](https://github.com/wntrblm/nox/releases) - [Changelog](https://github.com/wntrblm/nox/blob/main/CHANGELOG.md) - [Commits](wntrblm/nox@2024.04.15...2024.10.09) Updates `pylint` from 3.2.7 to 3.3.1 - [Release notes](https://github.com/pylint-dev/pylint/releases) - [Commits](pylint-dev/pylint@v3.2.7...v3.3.1) Updates `pytest` from 8.3.2 to 8.3.3 - [Release notes](https://github.com/pytest-dev/pytest/releases) - [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst) - [Commits](pytest-dev/pytest@8.3.2...8.3.3) Updates `hypothesis` from 6.111.2 to 6.116.0 - [Release notes](https://github.com/HypothesisWorks/hypothesis/releases) - [Commits](HypothesisWorks/hypothesis@hypothesis-python-6.111.2...hypothesis-python-6.116.0)
2 parents c374a38 + 483b4ce commit 1986665

35 files changed

+162
-88
lines changed

RELEASE_NOTES.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
actor = ConfigManagingActor(config_files=["config.toml"])
1616
```
1717

18+
* The `MovingWindow` now take all arguments as keyword-only to avoid mistakes.
19+
1820
## New Features
1921

2022
- The `ConfigManagingActor` can now take multiple configuration files as input, allowing to override default configurations with custom configurations.

benchmarks/timeseries/periodic_feature_extractor.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@ async def init_feature_extractor(
3535
# We only need the moving window to initialize the PeriodicFeatureExtractor class.
3636
lm_chan = Broadcast[Sample[Quantity]](name="lm_net_power")
3737
async with MovingWindow(
38-
timedelta(seconds=1), lm_chan.new_receiver(), timedelta(seconds=1)
38+
size=timedelta(seconds=1),
39+
resampled_data_recv=lm_chan.new_receiver(),
40+
input_sampling_period=timedelta(seconds=1),
3941
) as moving_window:
4042
await lm_chan.new_sender().send(
4143
Sample(datetime.now(tz=timezone.utc), Quantity(0))

pyproject.toml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -47,44 +47,44 @@ dev-flake8 = [
4747
"flake8 == 7.1.1",
4848
"flake8-docstrings == 1.7.0",
4949
"flake8-pyproject == 1.2.3", # For reading the flake8 config from pyproject.toml
50-
"pydoclint == 0.5.6",
50+
"pydoclint == 0.5.9",
5151
"pydocstyle == 6.3.0",
5252
]
53-
dev-formatting = ["black == 24.8.0", "isort == 5.13.2"]
53+
dev-formatting = ["black == 24.10.0", "isort == 5.13.2"]
5454
dev-mkdocs = [
55-
"black == 24.8.0",
55+
"black == 24.10.0",
5656
"Markdown==3.7",
5757
"mike == 2.1.3",
5858
"mkdocs-gen-files == 0.5.0",
5959
"mkdocs-literate-nav == 0.6.1",
60-
"mkdocs-macros-plugin == 1.0.5",
61-
"mkdocs-material == 9.5.34",
62-
"mkdocstrings[python] == 0.25.2",
63-
"mkdocstrings-python == 1.10.9",
60+
"mkdocs-macros-plugin == 1.3.7",
61+
"mkdocs-material == 9.5.43",
62+
"mkdocstrings[python] == 0.26.2",
63+
"mkdocstrings-python == 1.12.2",
6464
"frequenz-repo-config[lib] == 0.10.0",
6565
]
6666
dev-mypy = [
67-
"mypy == 1.11.2",
67+
"mypy == 1.13.0",
6868
"types-Markdown == 3.7.0.20240822",
69-
"types-protobuf == 5.27.0.20240626",
69+
"types-protobuf == 5.28.3.20241030",
7070
"types-setuptools == 74.0.0.20240831",
7171
# For checking the noxfile, docs/ script, and tests
7272
"frequenz-sdk[dev-mkdocs,dev-noxfile,dev-pytest]",
7373
]
74-
dev-noxfile = ["nox == 2024.4.15", "frequenz-repo-config[lib] == 0.10.0"]
74+
dev-noxfile = ["nox == 2024.10.9", "frequenz-repo-config[lib] == 0.10.0"]
7575
dev-pylint = [
76-
"pylint == 3.2.7",
76+
"pylint == 3.3.1",
7777
# For checking the noxfile, docs/ script, and tests
7878
"frequenz-sdk[dev-mkdocs,dev-noxfile,dev-pytest]",
7979
]
8080
dev-pytest = [
81-
"pytest == 8.3.2",
81+
"pytest == 8.3.3",
8282
"frequenz-repo-config[extra-lint-examples] == 0.10.0",
8383
"pytest-mock == 3.14.0",
8484
"pytest-asyncio == 0.24.0",
8585
"time-machine == 2.12.0",
8686
"async-solipsism == 0.7",
87-
"hypothesis == 6.111.2",
87+
"hypothesis == 6.116.0",
8888
]
8989
dev = [
9090
"frequenz-sdk[dev-mkdocs,dev-flake8,dev-formatting,dev-mkdocs,dev-mypy,dev-noxfile,dev-pylint,dev-pytest]",

src/frequenz/sdk/_internal/_channels.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -153,20 +153,20 @@ def get_or_create(self, message_type: type[T], key: str) -> Broadcast[T]:
153153

154154
entry = self._channels[key]
155155
if entry.message_type is not message_type:
156-
exception = ValueError(
156+
error_message = (
157157
f"Type mismatch, a channel for key {key!r} exists and the requested "
158158
f"message type {message_type} is not the same as the existing "
159159
f"message type {entry.message_type}."
160160
)
161161
if _logger.isEnabledFor(logging.DEBUG):
162162
_logger.debug(
163163
"%s at:\n%s",
164-
str(exception),
164+
error_message,
165165
# We skip the last frame because it's this method, and limit the
166166
# stack to 9 frames to avoid adding too much noise.
167167
"".join(traceback.format_stack(limit=10)[:9]),
168168
)
169-
raise exception
169+
raise ValueError(error_message)
170170

171171
return typing.cast(Broadcast[T], entry.channel)
172172

src/frequenz/sdk/actor/_background_service.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,9 @@ def cancel(self, msg: str | None = None) -> None:
129129
for task in self._tasks:
130130
task.cancel(msg)
131131

132-
async def stop(self, msg: str | None = None) -> None:
132+
# We need the noqa because pydoclint can't figure out `rest` is
133+
# a `BaseExceptionGroup` instance.
134+
async def stop(self, msg: str | None = None) -> None: # noqa: DOC503
133135
"""Stop this background service.
134136
135137
This method cancels all running tasks spawned by this service and waits for them

src/frequenz/sdk/microgrid/_power_distributing/_component_pool_status_tracker.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ class ComponentPoolStatusTracker:
3333

3434
def __init__( # pylint: disable=too-many-arguments
3535
self,
36+
*,
3637
component_ids: abc.Set[int],
3738
component_status_sender: Sender[ComponentPoolStatus],
3839
max_data_age: timedelta,

src/frequenz/sdk/microgrid/_power_distributing/_component_status/_battery_status_tracker.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ class BatteryStatusTracker(ComponentStatusTracker, BackgroundService):
9999
@override
100100
def __init__( # pylint: disable=too-many-arguments
101101
self,
102+
*,
102103
component_id: int,
103104
max_data_age: timedelta,
104105
max_blocking_duration: timedelta,

src/frequenz/sdk/microgrid/_power_distributing/_component_status/_component_status.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ class ComponentStatusTracker(BackgroundService, ABC):
8585
@abstractmethod
8686
def __init__( # pylint: disable=too-many-arguments,super-init-not-called
8787
self,
88+
*,
8889
component_id: int,
8990
max_data_age: timedelta,
9091
max_blocking_duration: timedelta,

src/frequenz/sdk/microgrid/_power_distributing/_component_status/_ev_charger_status_tracker.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ class EVChargerStatusTracker(ComponentStatusTracker, BackgroundService):
4646
@override
4747
def __init__( # pylint: disable=too-many-arguments
4848
self,
49+
*,
4950
component_id: int,
5051
max_data_age: timedelta,
5152
max_blocking_duration: timedelta,

src/frequenz/sdk/microgrid/_power_distributing/_component_status/_pv_inverter_status_tracker.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ class PVInverterStatusTracker(ComponentStatusTracker, BackgroundService):
4343
@override
4444
def __init__( # pylint: disable=too-many-arguments
4545
self,
46+
*,
4647
component_id: int,
4748
max_data_age: timedelta,
4849
max_blocking_duration: timedelta,

0 commit comments

Comments
 (0)