From 3d37e5a66e557c8920c3f1060bf0a26460c6e181 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 17 Aug 2026 17:32:14 +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.3.1](https://github.com/pre-commit/mirrors-mypy/compare/v2.3.0...v2.3.1) - [github.com/pre-commit/mirrors-prettier: v3.1.0 → v4.0.0-alpha.8](https://github.com/pre-commit/mirrors-prettier/compare/v3.1.0...v4.0.0-alpha.8) - [github.com/astral-sh/ruff-pre-commit: v0.15.22 → v0.16.3](https://github.com/astral-sh/ruff-pre-commit/compare/v0.15.22...v0.16.3) --- .pre-commit-config.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 642f8ac..7f32da0 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -12,14 +12,14 @@ repos: - id: detect-private-key - repo: https://github.com/pre-commit/mirrors-mypy - rev: "v2.3.0" + rev: "v2.3.1" hooks: - id: mypy additional_dependencies: [types-PyYAML] exclude: "tests" - repo: https://github.com/pre-commit/mirrors-prettier - rev: v3.1.0 + rev: v4.0.0-alpha.8 hooks: - id: prettier @@ -30,7 +30,7 @@ repos: args: ["--ignore", "paper/paper.md"] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.15.22" + rev: "v0.16.3" hooks: # Run the linter. - id: ruff From b98ee7c8108ff865b080bb023bebf9429ddffb78 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 17 Aug 2026 17:32:27 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit hooks for more information, see https://pre-commit.ci --- README.md | 2 +- scripts/generate_star_history.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c10e765..04ce736 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@

-[![python](https://img.shields.io/badge/python-3.10%2B-blue)]() [![pytorch](https://img.shields.io/badge/pytorch-2.0%2B-orange)]() [![Downloads](https://static.pepy.tech/personalized-badge/visualtorch?period=total&units=international_system&left_color=grey&right_color=green&left_text=PyPI%20Downloads)](https://pepy.tech/project/visualtorch) [![Run Tests](https://github.com/willyfh/visualtorch/actions/workflows/pytest.yml/badge.svg)](https://github.com/willyfh/visualtorch/actions/workflows/pytest.yml) [![Documentation Status](https://readthedocs.org/projects/visualtorch/badge/?version=latest)](https://visualtorch.readthedocs.io/en/latest/?badge=latest) +[![python](https://img.shields.io/badge/python-3.10%2B-blue)](<>) [![pytorch](https://img.shields.io/badge/pytorch-2.0%2B-orange)](<>) [![Downloads](https://static.pepy.tech/personalized-badge/visualtorch?period=total&units=international_system&left_color=grey&right_color=green&left_text=PyPI%20Downloads)](https://pepy.tech/project/visualtorch) [![Run Tests](https://github.com/willyfh/visualtorch/actions/workflows/pytest.yml/badge.svg)](https://github.com/willyfh/visualtorch/actions/workflows/pytest.yml) [![Documentation Status](https://readthedocs.org/projects/visualtorch/badge/?version=latest)](https://visualtorch.readthedocs.io/en/latest/?badge=latest) diff --git a/scripts/generate_star_history.py b/scripts/generate_star_history.py index 8dab9d0..1750cac 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: