From 37d6b7e5d42fc390ad0c2396b2f10f4f22dec4df Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 18 Nov 2026 05:54:16 +0000 Subject: [PATCH 1/2] build(deps-dev): bump ruff Bumps the dev-dependencies group with 1 update in the / directory: [ruff](https://github.com/astral-sh/ruff). Updates `ruff` from 0.17.1 to 0.17.4 - [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.17.1...0.17.4) --- updated-dependencies: - dependency-name: ruff dependency-version: 0.17.3 dependency-type: direct:development update-type: version-update:semver-patch dependency-group: dev-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 8b8cf87b..8e874eaf 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -81,7 +81,7 @@ dev = [ # floating, the two drift apart on astral's release schedule and a hook that # passes locally reddens CI on a rule the other version does not have yet. # Move both in one change. - "ruff==0.17.1", + "ruff==0.17.4", # pinned: ty is pre-1.0 and adds lint rules in patch releases, so an unpinned # floating version reddens unrelated PRs on someone else's release schedule # (0.0.69/0.0.70 added unsound-return-statement and unsound-yield; 0.0.74 From b68a3249ed3c9c161b136373490920ad11db5d32 Mon Sep 17 00:00:00 2001 From: "Daniel Plohmann (Saturn)" Date: Wed, 18 Nov 2026 09:57:15 +0100 Subject: [PATCH 2/2] style(tarjan): merge nested if for ruff 0.17.4 SIM102 Co-Authored-By: Claude Opus 5.5 --- src/smda/common/Tarjan.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/smda/common/Tarjan.py b/src/smda/common/Tarjan.py index c7290ff4..e57acd6e 100644 --- a/src/smda/common/Tarjan.py +++ b/src/smda/common/Tarjan.py @@ -50,9 +50,8 @@ def calculateScc(self): call_stack.append((w, iter(graph.get(w, ())))) pushed = True break - elif w in stack_set: - if index[w] < lowlink[v]: - lowlink[v] = index[w] + elif w in stack_set and index[w] < lowlink[v]: + lowlink[v] = index[w] if pushed: continue