From 30efbedd28f00cdf5297401eea44682ee5596a0c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 6 Mar 2026 18:44:51 +0000 Subject: [PATCH 1/2] deps: bump ruff from 0.14.14 to 0.15.5 in the python-dependencies group Bumps the python-dependencies group with 1 update: [ruff](https://github.com/astral-sh/ruff). Updates `ruff` from 0.14.14 to 0.15.5 - [Release notes](https://github.com/astral-sh/ruff/releases) - [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md) - [Commits](https://github.com/astral-sh/ruff/compare/0.14.14...0.15.5) --- updated-dependencies: - dependency-name: ruff dependency-version: 0.15.5 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: python-dependencies ... Signed-off-by: dependabot[bot] --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 9b707de..c2b131d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -35,7 +35,7 @@ dependencies = [ ] [project.optional-dependencies] -dev = ["pre-commit", "pytest", "pytest-cov", "pytest-mock", "ruff==0.14.14"] +dev = ["pre-commit", "pytest", "pytest-cov", "pytest-mock", "ruff==0.15.5"] doc = ["sphinx", "pydata-sphinx-theme", "myst-parser", "autodoc_pydantic"] mcp = ["mcp[cli]>=1.2.0", "pyyaml"] From 538c5e1313b96457b0f684bac9444ad308e1a841 Mon Sep 17 00:00:00 2001 From: Aadil Latif Date: Fri, 6 Mar 2026 12:12:13 -0700 Subject: [PATCH 2/2] Format edge_equipment_mapper for Ruff 0.15.5 --- src/shift/mapper/edge_equipment_mapper.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/shift/mapper/edge_equipment_mapper.py b/src/shift/mapper/edge_equipment_mapper.py index 89d0915..e4997f3 100644 --- a/src/shift/mapper/edge_equipment_mapper.py +++ b/src/shift/mapper/edge_equipment_mapper.py @@ -87,9 +87,9 @@ def _get_served_load(self, from_node: str, to_node: str) -> ApparentPower: descendants = list(nx.descendants(dfs_graph, parent_node)) load_nodes = list( self.graph.get_nodes( - filter_func=lambda x: x.name in descendants - and x.assets is not None - and DistributionLoad in x.assets + filter_func=lambda x: ( + x.name in descendants and x.assets is not None and DistributionLoad in x.assets + ) ) ) served_load = ApparentPower(0, "kilova")