Skip to content
Merged
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 Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,15 @@ venv: .venv

.venv:
@echo "(If 'uv' fails with 'No such file or directory', try 'make install-uv')"
uv sync -q --extra dev
uv sync -q
.venv/bin/black --version
@echo "(If 'pyright' fails with 'error while loading shared libraries: libatomic.so.1:', try 'make install-libatomic')"
.venv/bin/pyright --version
.venv/bin/pytest --version

.PHONY: sync
sync:
uv sync --extra dev
uv sync

.PHONY: install-uv
install-uv:
Expand Down
4 changes: 2 additions & 2 deletions make.bat
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,15 @@ goto end

:venv
echo Creating virtual environment...
uv sync -q --extra dev
uv sync -q
.venv\Scripts\python --version
.venv\Scripts\black --version
.venv\Scripts\pyright --version
.venv\Scripts\python -m pytest --version
goto end

:sync
uv sync --extra dev
uv sync
goto end

:install-uv
Expand Down
31 changes: 16 additions & 15 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,21 +44,10 @@ dependencies = [
]

[project.optional-dependencies]
dev = [
"azure-mgmt-authorization>=4.0.0",
"azure-mgmt-keyvault>=12.1.1",
"coverage[toml]>=7.9.1",
"google-api-python-client>=2.184.0",
"google-auth-httplib2>=0.2.0",
"google-auth-oauthlib>=1.2.2",
"isort>=7.0.0",
# Needed to enable --logfire flag to tools/query.py
logfire = [
"logfire>=4.1.0",
"opentelemetry-instrumentation-httpx>=0.57b0",
"pydantic-ai-slim[openai]>=1.39.0",
"pyright>=1.1.408", # 407 has a regression
"pytest>=8.3.5",
"pytest-asyncio>=0.26.0",
"pytest-mock>=3.14.0",
]

[project.urls]
Expand Down Expand Up @@ -89,6 +78,18 @@ known_local_folder = ["conftest"]

[dependency-groups]
dev = [
"isort>=7.0.0",
"pyright>=1.1.408",
"azure-mgmt-authorization>=4.0.0",
"azure-mgmt-keyvault>=12.1.1",
"coverage[toml]>=7.9.1",
"google-api-python-client>=2.184.0",
"google-auth-httplib2>=0.2.0",
"google-auth-oauthlib>=1.2.2",
"isort>=7.0.0",
"logfire>=4.1.0", # So 'make check' passes
"opentelemetry-instrumentation-httpx>=0.57b0",
"pydantic-ai-slim[openai]>=1.39.0",
"pyright>=1.1.408", # 407 has a regression
"pytest>=8.3.5",
"pytest-asyncio>=0.26.0",
"pytest-mock>=3.14.0",
]
4 changes: 3 additions & 1 deletion tools/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -1134,8 +1134,10 @@ async def load_podcast_index(


def load_index_file[T: Mapping[str, typing.Any]](
file: str, selector: str, cls: type[T], verbose: bool = True
file: str | None, selector: str, cls: type[T], verbose: bool = True
) -> tuple[list[T], dict[str, T]]:
if file is None:
return [], {}
# If this crashes, the file is malformed -- go figure it out.
try:
with open(file) as f:
Expand Down
42 changes: 21 additions & 21 deletions uv.lock

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