Linux maintainer tooling and workflows
 help / color / mirror / Atom feed
* [PATCH b4 v2 00/11] Enable stricter local checks
@ 2026-04-19 15:59 Tamir Duberstein
  2026-04-19 15:59 ` [PATCH b4 v2 01/11] Add CI script Tamir Duberstein
                   ` (11 more replies)
  0 siblings, 12 replies; 14+ messages in thread
From: Tamir Duberstein @ 2026-04-19 15:59 UTC (permalink / raw)
  To: Kernel.org Tools
  Cc: Konstantin Ryabitsev, Tamir Duberstein,
	"str = 'reply", "str = 'reviewer",
	"str = 'author", "str = 'patch1"

This series makes b4 local developer checks enforceable from the
review TUI and makes the repo clean under ruff, mypy, pyright, and ty.

The early patches set ruff formatting and import behavior, make the
test environment reproducible under uv, and type the misc helpers enough
for whole-repo mypy. The middle patches tighten mypy and pyright, then
add ty with all rules enabled and bump the Python requirement to 3.11
because the code already uses 3.11-only syntax.

Signed-off-by: Tamir Duberstein <tamird@kernel.org>
---
Changes in v2:
- Rebase.
- Replace b4 ci integration with a simple shell script.
- Link to v1: https://patch.msgid.link/20260407-ruff-check-v1-0-c9568541ff67@kernel.org

---
Tamir Duberstein (11):
      Add CI script
      Add ruff checks to CI
      Import dependencies unconditionally
      Add ruff format check to CI
      Fix tests under uv with complex git config
      Fix typings in misc/
      Enable mypy unreachable warnings
      Enable and fix pyright diagnostics
      Avoid duplicate map lookups
      Add ty and configuration
      Enable pyright strict mode

 ci.sh                              |   10 +
 misc/retrieve_lore_thread.py       |   17 +-
 misc/review-ci-example.py          |   10 +-
 misc/send-receive.py               |  454 +++++++---
 pyproject.toml                     |   55 +-
 src/b4/__init__.py                 | 1571 +++++++++++++++++++++++-----------
 src/b4/bugs/__init__.py            |   52 +-
 src/b4/bugs/_import.py             |   14 +-
 src/b4/bugs/_tui.py                |  440 ++++++----
 src/b4/command.py                  | 1369 +++++++++++++++++++++++-------
 src/b4/diff.py                     |   50 +-
 src/b4/dig.py                      |   75 +-
 src/b4/ez.py                       | 1016 +++++++++++++++-------
 src/b4/kr.py                       |   10 +-
 src/b4/mbox.py                     |  309 ++++---
 src/b4/pr.py                       |  160 +++-
 src/b4/review/__init__.py          |   52 +-
 src/b4/review/_review.py           |  491 +++++++----
 src/b4/review/checks.py            |  396 +++++----
 src/b4/review/messages.py          |   64 +-
 src/b4/review/tracking.py          |  673 +++++++++------
 src/b4/review_tui/__init__.py      |   38 +-
 src/b4/review_tui/_common.py       |  366 +++++---
 src/b4/review_tui/_entry.py        |   69 +-
 src/b4/review_tui/_lite_app.py     |  111 ++-
 src/b4/review_tui/_modals.py       |  680 +++++++++------
 src/b4/review_tui/_pw_app.py       |  202 +++--
 src/b4/review_tui/_review_app.py   |  513 +++++++----
 src/b4/review_tui/_tracking_app.py | 1543 ++++++++++++++++++++++-----------
 src/b4/tui/__init__.py             |    1 +
 src/b4/tui/_common.py              |   43 +-
 src/b4/tui/_modals.py              |   49 +-
 src/b4/ty.py                       |  233 +++--
 src/tests/conftest.py              |   57 +-
 src/tests/test___init__.py         |  827 ++++++++++++------
 src/tests/test_ez.py               |  154 +++-
 src/tests/test_mbox.py             |   96 ++-
 src/tests/test_messages.py         |   21 +-
 src/tests/test_patatt.py           |   33 +-
 src/tests/test_rethread.py         |  178 ++--
 src/tests/test_review.py           | 1648 +++++++++++++++++++++---------------
 src/tests/test_review_checks.py    |  455 ++++++----
 src/tests/test_review_show_info.py |   97 ++-
 src/tests/test_review_tracking.py  |  990 ++++++++++++++--------
 src/tests/test_three_way_merge.py  |  188 ++--
 src/tests/test_tui_bugs.py         |   42 +-
 src/tests/test_tui_modals.py       |   60 +-
 src/tests/test_tui_review.py       |   98 +--
 src/tests/test_tui_tracking.py     | 1360 ++++++++++++++++++-----------
 49 files changed, 11574 insertions(+), 5866 deletions(-)
---
base-commit: 3bfbc1bf8f9549cfa2ad3949d807ce3d4954bb5d
change-id: 20260403-ruff-check-79f9f5441956

Best regards,
--  
Tamir Duberstein <tamird@kernel.org>


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2026-04-23  2:48 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-19 15:59 [PATCH b4 v2 00/11] Enable stricter local checks Tamir Duberstein
2026-04-19 15:59 ` [PATCH b4 v2 01/11] Add CI script Tamir Duberstein
2026-04-19 15:59 ` [PATCH b4 v2 02/11] Add ruff checks to CI Tamir Duberstein
2026-04-19 15:59 ` [PATCH b4 v2 03/11] Import dependencies unconditionally Tamir Duberstein
2026-04-19 15:59 ` [PATCH b4 v2 04/11] Add ruff format check to CI Tamir Duberstein
2026-04-19 18:06   ` Tamir Duberstein
2026-04-19 16:00 ` [PATCH b4 v2 05/11] Fix tests under uv with complex git config Tamir Duberstein
2026-04-19 16:00 ` [PATCH b4 v2 06/11] Fix typings in misc/ Tamir Duberstein
2026-04-19 16:00 ` [PATCH b4 v2 07/11] Enable mypy unreachable warnings Tamir Duberstein
2026-04-19 16:00 ` [PATCH b4 v2 08/11] Enable and fix pyright diagnostics Tamir Duberstein
2026-04-19 16:00 ` [PATCH b4 v2 09/11] Avoid duplicate map lookups Tamir Duberstein
2026-04-19 16:00 ` [PATCH b4 v2 10/11] Add ty and configuration Tamir Duberstein
2026-04-19 16:00 ` [PATCH b4 v2 11/11] Enable pyright strict mode Tamir Duberstein
2026-04-23  2:48 ` [PATCH b4 v2 00/11] Enable stricter local checks Konstantin Ryabitsev

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox