diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 642f8ac..8440944 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -19,7 +19,7 @@ repos: 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.1" hooks: # Run the linter. - id: ruff 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: