Skip to content
Draft
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
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,6 @@ jobs:

- name: Run tests
run: uv run pytest -vv

- name: Run Ruff
run: uv run ruff check .
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ repos:
)$

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.14.3
rev: v0.16.0
hooks:
- id: ruff
name: ruff check
Expand Down
2 changes: 1 addition & 1 deletion 4-r2-large-binary-roundtrip/src/entry.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ async def asgi_full_body(key: str, req: Request):
if obj is None:
return Response(content="Not found", status_code=404)

parts, chunk_sizes = await _read_all_chunks(obj.body)
parts, _chunk_sizes = await _read_all_chunks(obj.body)
full_body = b"".join(parts)

diag = {
Expand Down
6 changes: 5 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,9 @@ dev = [
"pre-commit>=4.3.0",
"pytest>=8.4.1",
"requests>=2.32.5",
"ruff>=0.12.10",
"ruff==0.16.0",
]

[tool.ruff]
required-version = "==0.16.0"
target-version = "py312"
9 changes: 5 additions & 4 deletions tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import json
import os
import re
import subprocess
import time
import socket
import subprocess
import sys
import pytest
import time
from contextlib import contextmanager
from pathlib import Path

from contextlib import contextmanager
import pytest

REPO_ROOT = Path(__file__).parents[1]

Expand Down Expand Up @@ -127,6 +127,7 @@ def _deploy_worker(directory: str) -> str:
["uv", "run", "pywrangler", "deploy"],
cwd=REPO_ROOT / directory,
capture_output=True,
check=False,
text=True,
timeout=300,
)
Expand Down
40 changes: 20 additions & 20 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading