Skip to content

uv compatibility, typing improvements

Tamir Duberstein tools 1 version Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected] change-id 20250128-uv-compat-4e107b99e7da

Versions newest first

  1. v1 Latest10 patches 1 replyApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/10Use PEP-735 dependency groupspyproject.toml+3 -10 replies
2/10Specify optional dependencies in pyproject.tomlmisc/requirements-completion.in pyproject.toml+2 -60 replies
3/10Specify dependencies in pyproject.tomlpyproject.toml requirements.in requirements.txt+11 -120 replies
4/10Add ruff, remove all noqa commentsmisc/send-receive.py pyproject.toml src/b4/__init__.py +7 more+31 -260 replies
5/10Remove `noinspection` commentsmisc/send-receive.py src/b4/__init__.py src/b4/command.py +1 more+1 -70 replies
6/10Add mypypyproject.toml+1 -00 replies
7/10Add missing LoreTrailer.lmsg annotationsrc/b4/__init__.py+1 -00 replies
8/10Check variables for None rather than exprssrc/b4/__init__.py+12 -90 replies
9/10Make LoreSeries.indexes never Nonesrc/b4/__init__.py+8 -110 replies
10/10Add missing type annotationssrc/b4/__init__.py src/b4/command.py src/b4/ez.py +7 more+112 -1010 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH b4 00/10] uv compatibility, typing improvements

uv[0] is an extremely fast Python package and project manager; allowing b4 to be developed with it makes life more pleasant for all contributors.

This series makes the b4 project compatible with uv and fixes various typing problems. Please see also https://github.com/mricon/b4/issues/61
for the likely cause of many of these typing issues having previously gone unnoticed.

---
Tamir Duberstein (10):
Use PEP-735 dependency groups
Specify optional dependencies in pyproject.toml Specify dependencies in pyproject.toml Add ruff, remove all noqa comments Remove noinspection comments
Add mypy
Add missing LoreTrailer.lmsg annotation Check variables for None rather than exprs Make LoreSeries.indexes never None
Add missing type annotations

 misc/requirements-completion.in |   1 -
 misc/send-receive.py            |   9 ++-
 pyproject.toml                  |  30 ++++++---
 requirements.in                 |   4 --
 requirements.txt                |   8 +--
 src/b4/__init__.py              | 133 ++++++++++++++++++++--------------------
 src/b4/command.py               |  34 +++++-----
 src/b4/ez.py                    |  50 +++++++--------
 src/b4/kr.py                    |   3 +-
 src/b4/mbox.py                  |   6 +-
 src/b4/ty.py                    |  17 +++--
 src/tests/conftest.py           |  17 ++---
 src/tests/test___init__.py      |  25 ++++----
 src/tests/test_ez.py            |   9 +--
 src/tests/test_mbox.py          |   7 ++-
 15 files changed, 181 insertions(+), 172 deletions(-)

---
base-commit: 6f78e874e96b0b3bac1767a1743b20af20cb0e2f
change-id: 20250128-uv-compat-4e107b99e7da

Best regards,

Signature · 1 line
Tamir Duberstein <[email protected]>