Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions paper/paper.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ import torch
import visualtorch
from torch import nn


class SimpleDense(nn.Module):
def __init__(self) -> None:
super().__init__()
Expand All @@ -131,6 +132,7 @@ class SimpleDense(nn.Module):
x = self.h2(x)
return self.out(x)


model = SimpleDense()

input_shape = (1, 4)
Expand Down
2 changes: 1 addition & 1 deletion scripts/generate_star_history.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Loading