Skip to content

fix: correct __main__.py entry point to import cli instead of nonexistent main - #23

Merged
Coding-Dev-Tools merged 1 commit into
masterfrom
Openclaw/deadcode/fix-main-module-entry-point
May 19, 2026
Merged

fix: correct __main__.py entry point to import cli instead of nonexistent main#23
Coding-Dev-Tools merged 1 commit into
masterfrom
Openclaw/deadcode/fix-main-module-entry-point

Conversation

@Coding-Dev-Tools

Copy link
Copy Markdown
Owner

The main.py module was importing main from deadcode.cli but
the CLI group function is named cli. This caused python -m deadcode
to fail with ImportError.

  • Fix import in main.py to reference cli instead of main
  • Add regression test verifying python -m deadcode --help works
  • Fix import ordering (ruff I001) in test_scanner.py

…tent main
The __main__.py module was importing main from deadcode.cli but
the CLI group function is named cli. This caused python -m deadcode
to fail with ImportError.
- Fix import in __main__.py to reference cli instead of main
- Add regression test verifying python -m deadcode --help works
- Fix import ordering (ruff I001) in test_scanner.py
@Coding-Dev-Tools
Coding-Dev-Tools merged commit d9ca027 into masterMay 19, 2026
4 checks passed
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@Coding-Dev-Tools