Skip to content

Commit 2461861

Browse files
Apply migration from 25.11.0 to 26.3.1
=== v26.3.1 ========================================================= Source: inline script Collecting black==26.3.1 Downloading black-26.3.1-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.metadata (91 kB) Collecting click>=8.0.0 (from black==26.3.1) Downloading click-8.3.3-py3-none-any.whl.metadata (2.6 kB) Collecting mypy-extensions>=0.4.3 (from black==26.3.1) Downloading mypy_extensions-1.1.0-py3-none-any.whl.metadata (1.1 kB) Collecting packaging>=22.0 (from black==26.3.1) Downloading packaging-26.2-py3-none-any.whl.metadata (3.5 kB) Collecting pathspec>=1.0.0 (from black==26.3.1) Downloading pathspec-1.1.1-py3-none-any.whl.metadata (14 kB) Collecting platformdirs>=2 (from black==26.3.1) Downloading platformdirs-4.9.6-py3-none-any.whl.metadata (4.7 kB) Collecting pytokens~=0.4.0 (from black==26.3.1) Downloading pytokens-0.4.1-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.metadata (3.8 kB) Downloading black-26.3.1-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (1.8 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.8/1.8 MB 166.0 MB/s 0:00:00 Downloading pytokens-0.4.1-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (268 kB) Downloading click-8.3.3-py3-none-any.whl (110 kB) Downloading mypy_extensions-1.1.0-py3-none-any.whl (5.0 kB) Downloading packaging-26.2-py3-none-any.whl (100 kB) Downloading pathspec-1.1.1-py3-none-any.whl (57 kB) Downloading platformdirs-4.9.6-py3-none-any.whl (21 kB) Installing collected packages: pytokens, platformdirs, pathspec, packaging, mypy-extensions, click, black Successfully installed black-26.3.1 click-8.3.3 mypy-extensions-1.1.0 packaging-26.2 pathspec-1.1.1 platformdirs-4.9.6 pytokens-0.4.1 [notice] A new release of pip is available: 26.0.1 -> 26.1.1 [notice] To update, run: pip install --upgrade pip reformatted /home/runner/work/frequenz-sdk-python/frequenz-sdk-python/benchmarks/timeseries/ringbuffer_serialization.py reformatted /home/runner/work/frequenz-sdk-python/frequenz-sdk-python/benchmarks/timeseries/ringbuffer_memusage.py reformatted /home/runner/work/frequenz-sdk-python/frequenz-sdk-python/benchmarks/timeseries/benchmark_datasourcing.py reformatted /home/runner/work/frequenz-sdk-python/frequenz-sdk-python/examples/battery_pool.py reformatted /home/runner/work/frequenz-sdk-python/frequenz-sdk-python/benchmarks/timeseries/periodic_feature_extractor.py reformatted /home/runner/work/frequenz-sdk-python/frequenz-sdk-python/src/frequenz/sdk/_internal/_asyncio.py reformatted /home/runner/work/frequenz-sdk-python/frequenz-sdk-python/src/frequenz/sdk/actor/_run_utils.py reformatted /home/runner/work/frequenz-sdk-python/frequenz-sdk-python/src/frequenz/sdk/microgrid/_power_distributing/_component_managers/_ev_charger_manager/_states.py reformatted /home/runner/work/frequenz-sdk-python/frequenz-sdk-python/src/frequenz/sdk/microgrid/_power_distributing/_component_status/_component_status.py reformatted /home/runner/work/frequenz-sdk-python/frequenz-sdk-python/src/frequenz/sdk/microgrid/_power_distributing/_component_pool_status_tracker.py reformatted /home/runner/work/frequenz-sdk-python/frequenz-sdk-python/src/frequenz/sdk/microgrid/_power_distributing/request.py reformatted /home/runner/work/frequenz-sdk-python/frequenz-sdk-python/src/frequenz/sdk/microgrid/_power_distributing/result.py reformatted /home/runner/work/frequenz-sdk-python/frequenz-sdk-python/src/frequenz/sdk/microgrid/_power_distributing/power_distributing.py reformatted /home/runner/work/frequenz-sdk-python/frequenz-sdk-python/src/frequenz/sdk/microgrid/_power_distributing/_component_status/_ev_charger_status_tracker.py reformatted /home/runner/work/frequenz-sdk-python/frequenz-sdk-python/src/frequenz/sdk/timeseries/_fuse.py reformatted /home/runner/work/frequenz-sdk-python/frequenz-sdk-python/src/frequenz/sdk/microgrid/_resampling.py reformatted /home/runner/work/frequenz-sdk-python/frequenz-sdk-python/src/frequenz/sdk/timeseries/_periodic_feature_extractor.py reformatted /home/runner/work/frequenz-sdk-python/frequenz-sdk-python/src/frequenz/sdk/timeseries/_moving_window.py reformatted /home/runner/work/frequenz-sdk-python/frequenz-sdk-python/src/frequenz/sdk/timeseries/battery_pool/_component_metrics.py reformatted /home/runner/work/frequenz-sdk-python/frequenz-sdk-python/src/frequenz/sdk/timeseries/battery_pool/_battery_pool_reference_store.py reformatted /home/runner/work/frequenz-sdk-python/frequenz-sdk-python/src/frequenz/sdk/timeseries/ev_charger_pool/_ev_charger_pool.py reformatted /home/runner/work/frequenz-sdk-python/frequenz-sdk-python/src/frequenz/sdk/timeseries/battery_pool/_methods.py reformatted /home/runner/work/frequenz-sdk-python/frequenz-sdk-python/src/frequenz/sdk/timeseries/formula_engine/__init__.py reformatted /home/runner/work/frequenz-sdk-python/frequenz-sdk-python/src/frequenz/sdk/timeseries/formulas/__init__.py reformatted /home/runner/work/frequenz-sdk-python/frequenz-sdk-python/src/frequenz/sdk/timeseries/ev_charger_pool/_system_bounds_tracker.py reformatted /home/runner/work/frequenz-sdk-python/frequenz-sdk-python/src/frequenz/sdk/timeseries/_ringbuffer/buffer.py reformatted /home/runner/work/frequenz-sdk-python/frequenz-sdk-python/src/frequenz/sdk/timeseries/battery_pool/_metric_calculator.py reformatted /home/runner/work/frequenz-sdk-python/frequenz-sdk-python/src/frequenz/sdk/timeseries/formulas/_formula_pool.py reformatted /home/runner/work/frequenz-sdk-python/frequenz-sdk-python/src/frequenz/sdk/timeseries/formulas/_lexer.py reformatted /home/runner/work/frequenz-sdk-python/frequenz-sdk-python/src/frequenz/sdk/timeseries/logical_meter/_logical_meter.py reformatted /home/runner/work/frequenz-sdk-python/frequenz-sdk-python/src/frequenz/sdk/timeseries/grid.py reformatted /home/runner/work/frequenz-sdk-python/frequenz-sdk-python/src/frequenz/sdk/timeseries/pv_pool/_pv_pool_reference_store.py reformatted /home/runner/work/frequenz-sdk-python/frequenz-sdk-python/tests/actor/test_background_service.py reformatted /home/runner/work/frequenz-sdk-python/frequenz-sdk-python/tests/actor/test_resampling.py reformatted /home/runner/work/frequenz-sdk-python/frequenz-sdk-python/tests/conftest.py reformatted /home/runner/work/frequenz-sdk-python/frequenz-sdk-python/tests/config/test_actor.py reformatted /home/runner/work/frequenz-sdk-python/frequenz-sdk-python/tests/microgrid/power_distributing/_component_status/test_pv_inverter_status.py reformatted /home/runner/work/frequenz-sdk-python/frequenz-sdk-python/tests/config/test_manager.py reformatted /home/runner/work/frequenz-sdk-python/frequenz-sdk-python/tests/timeseries/_ev_charger_pool/test_ev_charger_pool.py reformatted /home/runner/work/frequenz-sdk-python/frequenz-sdk-python/tests/timeseries/_formulas/test_3_phases.py reformatted /home/runner/work/frequenz-sdk-python/frequenz-sdk-python/tests/timeseries/_formulas/test_lexer.py reformatted /home/runner/work/frequenz-sdk-python/frequenz-sdk-python/tests/timeseries/_formulas/utils.py reformatted /home/runner/work/frequenz-sdk-python/frequenz-sdk-python/tests/timeseries/_formulas/test_composition.py reformatted /home/runner/work/frequenz-sdk-python/frequenz-sdk-python/tests/timeseries/_resampling/wall_clock_timer/test_config.py reformatted /home/runner/work/frequenz-sdk-python/frequenz-sdk-python/tests/timeseries/test_base_types.py reformatted /home/runner/work/frequenz-sdk-python/frequenz-sdk-python/tests/timeseries/test_logical_meter.py reformatted /home/runner/work/frequenz-sdk-python/frequenz-sdk-python/tests/timeseries/test_frequency_streaming.py reformatted /home/runner/work/frequenz-sdk-python/frequenz-sdk-python/tests/timeseries/mock_resampler.py reformatted /home/runner/work/frequenz-sdk-python/frequenz-sdk-python/tests/timeseries/test_ringbuffer_serialization.py reformatted /home/runner/work/frequenz-sdk-python/frequenz-sdk-python/tests/timeseries/test_voltage_streamer.py reformatted /home/runner/work/frequenz-sdk-python/frequenz-sdk-python/tests/utils/_a_sequence.py reformatted /home/runner/work/frequenz-sdk-python/frequenz-sdk-python/tests/utils/component_data_streamer.py reformatted /home/runner/work/frequenz-sdk-python/frequenz-sdk-python/tests/utils/component_data_wrapper.py reformatted /home/runner/work/frequenz-sdk-python/frequenz-sdk-python/tests/utils/component_graph_utils.py reformatted /home/runner/work/frequenz-sdk-python/frequenz-sdk-python/tests/timeseries/test_ringbuffer.py reformatted /home/runner/work/frequenz-sdk-python/frequenz-sdk-python/tests/microgrid/power_distributing/test_battery_distribution_algorithm.py reformatted /home/runner/work/frequenz-sdk-python/frequenz-sdk-python/tests/timeseries/test_resampling.py All done! ✨ 🍰 ✨ 57 files reformatted, 147 files left unchanged. The migration completed successfully.
1 parent ae5f52f commit 2461861

57 files changed

Lines changed: 28 additions & 81 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

benchmarks/timeseries/benchmark_datasourcing.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
1010
PYTHONPATH=. python benchmark_datasourcing.py <num ev chargers> <num messages per battery>
1111
"""
12+
1213
import argparse
1314
import asyncio
1415
import sys

benchmarks/timeseries/periodic_feature_extractor.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
implementation.
1010
"""
1111

12-
1312
import asyncio
1413
import collections.abc
1514
import contextlib

benchmarks/timeseries/ringbuffer_memusage.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
"""Memory allocation benchmark for the ringbuffer."""
55

6-
76
import argparse
87
import tracemalloc
98
from datetime import datetime, timedelta, timezone

benchmarks/timeseries/ringbuffer_serialization.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
"""Benchmarks the serialization of the `OrderedRingBuffer` class."""
55

6-
76
import fnmatch
87
import os
98
import time

examples/battery_pool.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
"""Script with an example how to use BatteryPool."""
55

6-
76
import asyncio
87
import logging
98
from datetime import timedelta

src/frequenz/sdk/_internal/_asyncio.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
"""General purpose async tools."""
55

6-
76
import asyncio
87
import logging
98
import sys

src/frequenz/sdk/actor/_run_utils.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
"""Utility functions to run and synchronize the execution of actors."""
55

6-
76
import asyncio
87
import logging
98

src/frequenz/sdk/microgrid/_power_distributing/_component_managers/_ev_charger_manager/_states.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
"""Power distribution state tracking for ev chargers."""
55

6-
76
from dataclasses import dataclass
87
from datetime import datetime
98
from typing import Iterable

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
"""Class that tracks the status of pool of components."""
55

6-
76
import asyncio
87
import contextlib
98
from collections import abc

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
"""Classes to track the status of components in the microgrid."""
55

6-
76
import enum
87
from abc import ABC, abstractmethod
98
from collections import abc

0 commit comments

Comments
 (0)