jw-pkg/src/python/jw/pkg/lib
Jan Lindemann 5d1ba6e15a
pyproject.toml: Enforce import annotations style

Add new ruff rules and fix their fallout:

future-annotations = true

select = [ "TC", # type-checking import placement rules "FA", # future annotations rules ]

This comprises:

- Streamline imports and exports in cmds.xxx.Cmd

- Import base class as "Base"
- Export types Cmd and Parent via __all__

- Move all types imported only for annotation below TYPE_CHECKING

- Use "from __future__ import annotations" all over the place

Signed-off-by: Jan Lindemann <jan@janware.com>
2026-06-01 14:34:25 +02:00
..
distros jw.pkg: Fix "make check" static code check fallout 2026-05-31 18:20:38 +02:00
ec pyproject.toml: Enforce import annotations style 2026-06-01 14:34:25 +02:00
pm jw.pkg: Fix "make check" static code check fallout 2026-05-31 18:20:38 +02:00
App.py cmds / lib: Fix more static checker findings 2026-06-01 07:55:11 +02:00
AsyncRunner.py pyproject.toml: Enforce import annotations style 2026-06-01 14:34:25 +02:00
base.py pyproject.toml: Enforce import annotations style 2026-06-01 14:34:25 +02:00
Cmd.py pyproject.toml: Enforce import annotations style 2026-06-01 14:34:25 +02:00
CopyContext.py jw.pkg: Fix "make check" static code check fallout 2026-05-31 18:20:38 +02:00
Distro.py pyproject.toml: Enforce import annotations style 2026-06-01 14:34:25 +02:00
ExecContext.py cmds / lib: Fix more static checker findings 2026-06-01 07:55:11 +02:00
FileContext.py pyproject.toml: Enforce import annotations style 2026-06-01 14:34:25 +02:00
init.py lib.init.detect_modules(): Add function 2026-05-31 17:52:20 +02:00
log.py lib.log: from __future__ import annotations 2026-06-01 14:24:01 +02:00
Makefile jw.pkg.build.lib: Move to jw.pkg.lib 2026-01-26 17:58:23 +01:00
Package.py jw.pkg: Fix "make check" static code check fallout 2026-05-31 18:20:38 +02:00
PackageFilter.py pyproject.toml: Enforce import annotations style 2026-06-01 14:34:25 +02:00
ProcFilter.py jw.pkg: Fix "make check" static code check fallout 2026-05-31 18:20:38 +02:00
ProcFilterGpg.py pyproject.toml: Enforce import annotations style 2026-06-01 14:34:25 +02:00
TarIo.py pyproject.toml: Enforce import annotations style 2026-06-01 14:34:25 +02:00
Types.py pyproject.toml: Enforce import annotations style 2026-06-01 14:34:25 +02:00
Uri.py jw.pkg: Fix "make check" static code check fallout 2026-05-31 18:20:38 +02:00
util.py pyproject.toml: Enforce import annotations style 2026-06-01 14:34:25 +02:00