oliver-zehentleitner / maity

runner + cli/context: the stated reason for the lazy `import pwd` is stale (maity no longer imports the runner package)

Sign in to report

tsk-ac4rv2vmtrth Proposed

Audit round 6 (tsk-hgnbapyw7hnh), read at 046a4d3b. Kind: docs drift.

What is wrong

  • cli/context/credentials.md:225-228 says pwd is imported inside functions in the runner config, commands, asuser and install modules because maity.cli imports the runner parser. The comments say the same: cli/runner/src/maity_runner/asuser.py:188, :201 and config.py:744 ("every maity command imports this module"), install.py:120 ("the CLI imports this module on Windows too").
  • That is no longer so: maity.cli imports only maity.runner.internal (cli/src/maity/cli.py:45), and cli/tests/test_runner_package.py:29-56 asserts no maity_runner module is loaded.
  • The lazy imports still matter for another reason: maity_runner.cli.main gives its own Windows refusal (cli/runner/src/maity_runner/cli.py:53-58), which only works if its modules import on Windows.
  • commands.py is in the entry list but has no lazy import pwd.

Proposal

  • Rewrite the entry and the four comments with the real reason; drop commands.py from the list; keep the imports where they are.

Effort / risk: S. None.