Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ repos:
- id: mixed-line-ending
- id: check-case-conflict
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.14.9 # must match uv.lock
rev: v0.14.14 # must match uv.lock
hooks:
- id: ruff-check
- id: ruff-format
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ tests = [
"types-networkx>=3.4.2",
]
dev = [
"ruff>=0.9.2",
"ruff>=0.14.14",
"pytest>=8.0",
"rich-argparse>=1.6.0",
"mypy>=1.14.1",
"mypy>=1.19.1",
"pyright>=1.1.392",
{ include-group = "tests" },
]
Expand Down
3 changes: 0 additions & 3 deletions stubs/pandapower-stubs/auxiliary.pyi
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import logging
from collections.abc import Iterable, Mapping, MutableMapping
from typing import Any, Final, Literal, NoReturn, Self, overload
from typing_extensions import deprecated

import geopandas as gpd
import numpy as np
Expand Down Expand Up @@ -124,8 +123,6 @@ class pandapowerNet(ADict[pd.DataFrame]):
res_protection: pd.DataFrame # Optional?
@classmethod
def create_dataframes(cls, data): ...
@deprecated("Use copy.deepcopy(net) instead of net.deepcopy()")
def deepcopy(self) -> Self: ...

class GeoAccessor:
def __init__(self, pandas_obj) -> None: ...
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ class BinarySearchControl(Controller):
voltage_ctrl,
name="",
input_inverted=[],
gen_Q_response=[],
bus_idx=None,
tol=0.001,
in_service=True,
Expand Down
1 change: 1 addition & 0 deletions stubs/pandapower-stubs/control/util/auxiliary.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@ def create_trafo_characteristic_object(net: pandapowerNet) -> None: ...
def _create_trafo_characteristics(net: pandapowerNet, trafotable, trafo_index, variable, x_points, y_points) -> None: ...
def create_shunt_characteristic_object(net: pandapowerNet) -> None: ...
def create_q_capability_characteristics_object(net: pandapowerNet) -> None: ...
def get_min_max_q_mvar_from_characteristics_object(net: pandapowerNet, element: str, element_index): ...
4 changes: 3 additions & 1 deletion stubs/pandapower-stubs/convert_format.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ from collections.abc import Container

from pandapower.auxiliary import pandapowerNet

def convert_format(net: pandapowerNet, elements_to_deserialize: Container[str] | None = None) -> pandapowerNet: ...
def convert_format(
net: pandapowerNet, elements_to_deserialize: Container[str] | None = None, drop_invalid_geodata: bool = False
) -> pandapowerNet: ...
def correct_dtypes(net: pandapowerNet, error: bool) -> None: ...
def convert_trafo_pst_logic(net: pandapowerNet) -> None: ...
Loading