From ca71c23ba39587661006b86ada80cc8a05278acd Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 19 Oct 2026 17:08:58 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/pre-commit/mirrors-mypy: v2.3.0 → v2.4.0](https://github.com/pre-commit/mirrors-mypy/compare/v2.3.0...v2.4.0) - [github.com/astral-sh/ruff-pre-commit: v0.15.22 → v0.17.1](https://github.com/astral-sh/ruff-pre-commit/compare/v0.15.22...v0.17.1) --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index da3d089..5acac4e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -12,7 +12,7 @@ repos: - id: detect-private-key - repo: https://github.com/pre-commit/mirrors-mypy - rev: "v2.3.0" + rev: "v2.4.0" hooks: - id: mypy additional_dependencies: [types-PyYAML] @@ -40,7 +40,7 @@ repos: args: ["--ignore", "paper/paper.md"] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.15.22" + rev: "v0.17.1" hooks: # Run the linter. - id: ruff From c625e726ba2c672d33dec7f728e91532b64050fb Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 19 Oct 2026 17:09:12 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit hooks for more information, see https://pre-commit.ci --- paper/paper.md | 2 ++ scripts/generate_star_history.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/paper/paper.md b/paper/paper.md index f8754f5..7726b40 100644 --- a/paper/paper.md +++ b/paper/paper.md @@ -117,6 +117,7 @@ import torch import visualtorch from torch import nn + class SimpleDense(nn.Module): def __init__(self) -> None: super().__init__() @@ -131,6 +132,7 @@ class SimpleDense(nn.Module): x = self.h2(x) return self.out(x) + model = SimpleDense() input_shape = (1, 4) diff --git a/scripts/generate_star_history.py b/scripts/generate_star_history.py index f2cd665..2c89441 100644 --- a/scripts/generate_star_history.py +++ b/scripts/generate_star_history.py @@ -55,7 +55,7 @@ def _fetch_stargazer_timestamps() -> list[datetime]: page = 1 while True: url = f"https://api.github.com/repos/{REPO}/stargazers?per_page=100&page={page}" - request = urllib.request.Request(url, headers=headers) # noqa: S310 + request = urllib.request.Request(url, headers=headers) with urllib.request.urlopen(request) as response: # noqa: S310 entries = json.loads(response.read()) if not entries: