Re: [PATCH v2 00/14] Harden local type checking and test mocking
Konstantin Ryabitsev <[email protected]>
| Newsgroups | org.kernel.linux.tools |
|---|---|
| Message-ID | <177618771367.847180.16159053169602920819.b4-ty@b4> |
On Mon, 13 Apr 2026 18:08:14 -0400, Tamir Duberstein wrote:
> Harden local type checking and test mocking
>
> This series raises the local quality floor by making the type-checking
> tooling stricter and by removing test patterns that rely on unsafe or
> poorly typed mocks.
>
> It starts by wiring the repository into b4 CI checks, then adds ruff,
> pyright, and ty so the same checks run consistently in one place. After
> that, it removes suppressions incrementally by making the code and tests
> more explicit and better typed: typed keyword forwarding in
> from_git_config, a typed authheaders integration, and test-local
> subclasses instead of method reassignment.
>
> [...]
Applied, thanks!
[01/14] Add ci script and mypy suppressions
https://git.kernel.org/pub/scm/utils/liblore/liblore.git/commit/?id=828e718aa0a4
[02/14] Type make_msg and drop test suppressions
https://git.kernel.org/pub/scm/utils/liblore/liblore.git/commit/?id=b2981347f362
[03/14] Add ruff import checks to b4 CI
https://git.kernel.org/pub/scm/utils/liblore/liblore.git/commit/?id=ac6e2df890e8
[04/14] Add ruff format check to CI
https://git.kernel.org/pub/scm/utils/liblore/liblore.git/commit/?id=100116fefeef
[05/14] Add pyright strict checks to CI
https://git.kernel.org/pub/scm/utils/liblore/liblore.git/commit/?id=6109a737d052
[06/14] Replace HTTP session mocks with responses
https://git.kernel.org/pub/scm/utils/liblore/liblore.git/commit/?id=5445b53cd074
[07/14] Add ty checks to CI
https://git.kernel.org/pub/scm/utils/liblore/liblore.git/commit/?id=7cd032b465fc
[08/14] Drop redundant read-only property test
https://git.kernel.org/pub/scm/utils/liblore/liblore.git/commit/?id=53041a41e451
[09/14] Type from_git_config keyword arguments
https://git.kernel.org/pub/scm/utils/liblore/liblore.git/commit/?id=18603217b450
[10/14] Add authheaders stub and typed callable
https://git.kernel.org/pub/scm/utils/liblore/liblore.git/commit/?id=c9e8cf46e133
[11/14] Replace batch mocks with subclasses
https://git.kernel.org/pub/scm/utils/liblore/liblore.git/commit/?id=bdca5ed2752e
[12/14] Use CompletedProcess in git config tests
https://git.kernel.org/pub/scm/utils/liblore/liblore.git/commit/?id=f993dde25931
[13/14] Update README for uv-based dev checks
https://git.kernel.org/pub/scm/utils/liblore/liblore.git/commit/?id=204122fd6ad6
[14/14] Add b4 send configuration
https://git.kernel.org/pub/scm/utils/liblore/liblore.git/commit/?id=9ba4ddb7e4aa
Best regards,
--
KR