Build and packaging library
  • Python 55.1%
  • Makefile 32.6%
  • Shell 12.3%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Jan Lindemann 64f1a73650
test: Fix mypy strict errors in unit tests
The unit test files below test/unit/python/jw/pkg/lib/ define Cmd and App
subclasses with unannotated methods: __init__(), add_arguments(), _run()
and close() lack signatures, the made class attribute lacks a type, and the
_cleanup() and exit_context() helpers are untyped, so a strict mypy run
over the test tree fails on them. Likewise, the ExecApp and version tests
carry list formatting that yapf rejects.

Annotate the test classes following the library conventions: parent is App
| Cmd, the parser is ArgumentParser, and args is Namespace, and mark every
overridden method with @override. Guard the imports that are only used for
annotations behind TYPE_CHECKING, and add the future annotations import so
they stay out of the runtime path. Then reformat the test tree with yapf.
That folds the opts list of the ExecApp test and re-indents the rejected
operator list of the version test.

Signed-off-by: Jan Lindemann <jan@janware.com>
Assisted-by: unsloth/Qwen3.8-27B-GGUF:Q4_K_M with pi.dev v0.85.1
2026-09-13 15:42:29 +02:00
.github/workflows ci.yaml: test-packaging.yaml@{master-test -> master} 2026-06-08 19:43:15 +02:00
bin bin, make, scripts: Re-add files necessary for packaging jw-build 2025-11-14 11:22:50 +01:00
conf conf / scripts: Fix unprivileged "make install" 2026-08-18 17:27:32 +02:00
doc doc: Add subdir 2026-08-19 20:51:11 +02:00
make pkg.sh: Fix broken version macro expansion 2026-09-09 15:55:38 +02:00
scripts pkg.sh: Fix broken version macro expansion 2026-09-09 15:55:38 +02:00
src lib.version.Dependency: Reject unsupported spec operators 2026-09-11 11:22:33 +02:00
test test: Fix mypy strict errors in unit tests 2026-09-13 15:42:29 +02:00
.gitignore cache.mk: Include from topdir.mk, not make.mk 2026-07-22 14:38:24 +02:00
HASH Release 1.0.0-263@suse-tumbleweed/x86_64 2026-09-11 23:37:23 +00:00
Makefile cache.mk: Include from topdir.mk, not make.mk 2026-07-22 14:38:24 +02:00
RELEASES Release 1.0.0-263@suse-tumbleweed/x86_64 2026-09-11 23:37:23 +00:00
VERSION Start version: 1.0.0-263 2026-09-11 23:10:53 +00:00