You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enable ruff D (pydocstyle) under Google convention. Auto-insert
one-line docstrings on the 53 public classes and 51 public methods
that were missing them; manually add docstrings on the two ABC/Protocol
stubs (Transport.is_closed, TokenValidator.validate). Apply D202
auto-fix (no blank line after function docstring) project-wide.
Configure D107 (init docstrings live in class), D105 (magic methods),
D203/D213 (style conflicts) as ignores per Google style. Per-file
ignore D entirely for tests/ and examples/.
Add CHANGELOG.md with an "Unreleased - Idiomatic refactor" entry.
Update README development section to reflect the new pytest cov gate
(--cov-fail-under=90 in addopts) and reference the refactor commits.
Update REFACTOR_PLAN.md phase log with final commit shas + the
baseline-vs-final metrics table. All ten phase gates have passed and
been committed in order.
Final state:
- tests: 159 -> 194 passing
- coverage: 86% -> 90.22%
- ruff: clean under prompt-recommended 21-family rule set
- pyright: 0 errors fully strict (no Unknown* relaxations)
- uv build: wheel + sdist clean
- python floor: >=3.13
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
| 3 | done | — | bb82090 | Drop the four `reportUnknown*` pyright relaxations; tighten one `Any` in `cli` to `ServerConnection`; add `@override` on Transport subclasses + `StaticTokenValidator.validate`. |
330
+
| 4 | done | — | 5026503 | 16 `try/except/pass` → `contextlib.suppress`, one `SIM102/103` cleanup in subscription filter, one `RET504`. |
331
+
| 5 | done | — | 4bfa618 | ARG cleanup: rename intentionally-unused params to `_`-prefixed names at production sites; per-file ignore for tests/examples. |
0 commit comments