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
..
check
pyproject.toml: Enforce import annotations style
2026-06-01 14:34:25 +02:00
lib
cmds / lib: Fix more static checker findings
2026-06-01 07:55:11 +02:00
__init__.py
jw.pkg: Fix "make check" static code check fallout
2026-05-31 18:20:38 +02:00
BaseCmdPkgRelations.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
CmdBuild.py
pyproject.toml: Enforce import annotations style
2026-06-01 14:34:25 +02:00
CmdCanonicalizeRemotes.py
pyproject.toml: Enforce import annotations style
2026-06-01 14:34:25 +02:00
CmdCflags.py
pyproject.toml: Enforce import annotations style
2026-06-01 14:34:25 +02:00
CmdCheck.py
pyproject.toml: Enforce import annotations style
2026-06-01 14:34:25 +02:00
CmdCommands.py
pyproject.toml: Enforce import annotations style
2026-06-01 14:34:25 +02:00
CmdCreateFile.py
cmds.projects.CmdCreateFile: Add module
2026-05-31 18:20:29 +02:00
CmdCreatePkgConfig.py
pyproject.toml: Enforce import annotations style
2026-06-01 14:34:25 +02:00
CmdExepath.py
pyproject.toml: Enforce import annotations style
2026-06-01 14:34:25 +02:00
CmdGetAuthInfo.py
pyproject.toml: Enforce import annotations style
2026-06-01 14:34:25 +02:00
CmdGetval.py
pyproject.toml: Enforce import annotations style
2026-06-01 14:34:25 +02:00
CmdHtdocsDir.py
pyproject.toml: Enforce import annotations style
2026-06-01 14:34:25 +02:00
CmdLdflags.py
pyproject.toml: Enforce import annotations style
2026-06-01 14:34:25 +02:00
CmdLdlibpath.py
pyproject.toml: Enforce import annotations style
2026-06-01 14:34:25 +02:00
CmdLibname.py
pyproject.toml: Enforce import annotations style
2026-06-01 14:34:25 +02:00
CmdListRepos.py
pyproject.toml: Enforce import annotations style
2026-06-01 14:34:25 +02:00
CmdModules.py
pyproject.toml: Enforce import annotations style
2026-06-01 14:34:25 +02:00
CmdPath.py
pyproject.toml: Enforce import annotations style
2026-06-01 14:34:25 +02:00
CmdPkgConflicts.py
pyproject.toml: Enforce import annotations style
2026-06-01 14:34:25 +02:00
CmdPkgProvides.py
pyproject.toml: Enforce import annotations style
2026-06-01 14:34:25 +02:00
CmdPkgRequires.py
pyproject.toml: Enforce import annotations style
2026-06-01 14:34:25 +02:00
CmdProjDir.py
pyproject.toml: Enforce import annotations style
2026-06-01 14:34:25 +02:00
CmdPythonpath.py
pyproject.toml: Enforce import annotations style
2026-06-01 14:34:25 +02:00
CmdPythonpathOrig.py
pyproject.toml: Enforce import annotations style
2026-06-01 14:34:25 +02:00
CmdRequiredOsPkg.py
pyproject.toml: Enforce import annotations style
2026-06-01 14:34:25 +02:00
CmdSummary.py
pyproject.toml: Enforce import annotations style
2026-06-01 14:34:25 +02:00
CmdTest.py
pyproject.toml: Enforce import annotations style
2026-06-01 14:34:25 +02:00
CmdTmplDir.py
pyproject.toml: Enforce import annotations style
2026-06-01 14:34:25 +02:00
Makefile
jw.build.cmds: Move build.cmds -> cmds.projects
2026-01-26 17:58:23 +01:00