Skip to content

Commit 7fdbf70

Browse files
committed
docs+ci: fix inaccurate AGENTS.md; raise coverage gate 30->85 (actual 91%)
AGENTS.md corrections: deps are httpx/pydantic/eval-type-backport (not zero-dep requests+typing_extensions); models live in types.py (not models.py); Python 3.9+ (not 3.10+); HTTP mocking uses respx (not httpretty).
1 parent e5fcc9d commit 7fdbf70

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
- name: Install coverage tools
3838
run: pip install pytest-cov
3939
- name: pytest
40-
run: pytest --strict-markers --tb=short --cov=hawk --cov-report=term-missing --cov-fail-under=30
40+
run: pytest --strict-markers --tb=short --cov=hawk --cov-report=term-missing --cov-fail-under=85
4141

4242
lint:
4343
name: lint (ruff)

AGENTS.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ Python SDK for the Hawk daemon API. Provides an idiomatic Python client for chat
66

77
- **Thin wrapper** — maps directly to the hawk daemon HTTP API
88
- **Type-hinted** — full type annotations for IDE support
9-
- **Zero dependencies** — only `requests` and `typing_extensions`
9+
- **Minimal dependencies**`httpx` (HTTP), `pydantic` v2 (models), and
10+
`eval-type-backport` (only on Python < 3.10)
1011

1112
## Build & Test
1213

@@ -22,20 +23,20 @@ mypy . # Type check
2223
## Architecture
2324

2425
- `hawk/client.py` — Main `HawkClient` class
25-
- `hawk/models.py` — Pydantic models for API responses
26+
- `hawk/types.py` — Pydantic models for API responses
2627
- `hawk/errors.py` — Typed error classes (`HawkAPIError`, etc.)
2728
- `hawk/discovery.py` — Auto-discover running hawk daemon
2829
- `hawk/memory_tools.py` — Memory graph operations
2930
- `tests/` — Test suite with mocked HTTP responses
3031

3132
## Conventions
3233

33-
- Python 3.10+
34+
- Python 3.9+
3435
- `ruff` for linting and formatting (enforced in CI)
3536
- Type annotations required on all public APIs
3637
- Conventional Commits: `feat:`, `fix:`, `docs:`, `refactor:`, `test:`
3738
- No `Co-authored-by:` trailers
38-
- `pytest` for testing, `httpretty` for HTTP mocking
39+
- `pytest` for testing, `respx` for HTTP mocking
3940

4041
## Common Pitfalls
4142

0 commit comments

Comments
 (0)