Apply ruff format and document lint/type tooling in CLAUDE.md

First repo-wide ruff format pass, plus a note in CLAUDE.md to run
ruff and ty periodically.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-18 17:40:27 +02:00
co-authored by Claude Sonnet 4.6
parent 53fd2e4405
commit 8cebc4809d
20 changed files with 668 additions and 307 deletions
+3 -5
View File
@@ -43,11 +43,9 @@ def sample_ddpm(
alpha = schedule.alphas[i]
alpha_bar = schedule.alpha_bars[i]
z = torch.randn_like(x) if i > 0 else torch.zeros_like(x)
x = (
(1.0 / alpha.sqrt())
* (x - (1.0 - alpha) / (1.0 - alpha_bar).sqrt() * eps_pred)
+ beta.sqrt() * z
)
x = (1.0 / alpha.sqrt()) * (
x - (1.0 - alpha) / (1.0 - alpha_bar).sqrt() * eps_pred
) + beta.sqrt() * z
return x