Skip to content

Commit 3a5589d

Browse files
authored
coverage badge and uprev (#75)
1 parent 99bf3c8 commit 3a5589d

File tree

5 files changed

+17
-6
lines changed

5 files changed

+17
-6
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,7 @@
11
# Coming soon
2+
3+
[![CI](https://github.com/pydantic/pydantic-ai/actions/workflows/ci.yml/badge.svg?event=push)](https://github.com/pydantic/pydantic-ai/actions/workflows/ci.yml?query=branch%3Amain)
4+
[![Coverage](https://coverage-badge.samuelcolvin.workers.dev/pydantic/pydantic-ai.svg)](https://coverage-badge.samuelcolvin.workers.dev/redirect/pydantic/pydantic-ai)
5+
[![PyPI](https://img.shields.io/pypi/v/pydantic-ai.svg)](https://pypi.python.org/pypi/pydantic-ai)
6+
[![versions](https://img.shields.io/pypi/pyversions/pydantic-ai.svg)](https://github.com/pydantic/pydantic-ai)
7+
[![license](https://img.shields.io/github/license/pydantic/pydantic-ai.svg?v)](https://github.com/pydantic/pydantic-ai/blob/main/LICENSE)

docs/.partials/index-header.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,16 @@
1111
<a href="https://github.com/pydantic/pydantic-ai/actions/workflows/ci.yml?query=branch%3Amain">
1212
<img src="https://github.com/pydantic/pydantic-ai/actions/workflows/ci.yml/badge.svg?event=push" alt="CI">
1313
</a>
14+
<a href="https://coverage-badge.samuelcolvin.workers.dev/redirect/pydantic/pydantic-ai">
15+
<img src="https://coverage-badge.samuelcolvin.workers.dev/pydantic/pydantic-ai.svg" alt="Coverage">
16+
</a>
1417
<a href="https://pypi.python.org/pypi/pydantic-ai">
1518
<img src="https://img.shields.io/pypi/v/pydantic-ai.svg" alt="PyPI">
1619
</a>
1720
<a href="https://github.com/pydantic/pydantic-ai">
1821
<img src="https://img.shields.io/pypi/pyversions/pydantic-ai.svg" alt="versions">
1922
</a>
2023
<a href="https://github.com/pydantic/pydantic-ai/blob/main/LICENSE">
21-
<img src="https://img.shields.io/github/license/pydantic/pydantic-ai.svg" alt="license">
24+
<img src="https://img.shields.io/github/license/pydantic/pydantic-ai.svg?v" alt="license">
2225
</a>
2326
</p>

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44

55
[project]
66
name = "pydantic-ai"
7-
version = "0.0.3"
7+
version = "0.0.4"
88
description = "Agent Framework / shim to use Pydantic with LLMs"
99
authors = [
1010
{ name = "Samuel Colvin", email = "[email protected]" },

tests/test_examples.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ def test_docs_examples(
119119
if 'def test_application_code' in example.source:
120120
call_name = 'test_application_code'
121121

122-
if eval_example.update_examples:
122+
if eval_example.update_examples: # pragma: no cover
123123
eval_example.format(example)
124124
module_dict = eval_example.run_print_update(example, call=call_name)
125125
else:
@@ -218,7 +218,7 @@ async def async_http_request(url: str, **kwargs: Any) -> httpx.Response:
218218
}
219219

220220

221-
async def model_logic(messages: list[Message], info: AgentInfo) -> ModelAnyResponse:
221+
async def model_logic(messages: list[Message], info: AgentInfo) -> ModelAnyResponse: # pragma: no cover
222222
m = messages[-1]
223223
if m.role == 'user':
224224
if response := text_responses.get(m.content):
@@ -258,7 +258,9 @@ async def model_logic(messages: list[Message], info: AgentInfo) -> ModelAnyRespo
258258
raise RuntimeError(f'Unexpected message: {m}')
259259

260260

261-
async def stream_model_logic(messages: list[Message], info: AgentInfo) -> AsyncIterator[str | DeltaToolCalls]:
261+
async def stream_model_logic(
262+
messages: list[Message], info: AgentInfo
263+
) -> AsyncIterator[str | DeltaToolCalls]: # pragma: no cover
262264
m = messages[-1]
263265
if m.role == 'user':
264266
if response := text_responses.get(m.content):

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)