Skip to content

fix(build): correct setup.py exclusion filter (m[0]->m[1]) + resolve E402 late import in cloud_license.py#36

Merged
Coding-Dev-Tools merged 2 commits into
mainfrom
fix/lint-e402-cloud-license
Jul 21, 2026
Merged

fix(build): correct setup.py exclusion filter (m[0]->m[1]) + resolve E402 late import in cloud_license.py#36
Coding-Dev-Tools merged 2 commits into
mainfrom
fix/lint-e402-cloud-license

Conversation

@Coding-Dev-Tools

@Coding-Dev-Tools Coding-Dev-Tools commented Jul 21, 2026

Copy link
Copy Markdown
Owner

Changes

Bug fix (setup.py)

  • Fixed exclusion filter in build_py.find_package_modules: was comparing m[0] (module name) instead of m[1] (file path) against the exclusion pattern, so excluded modules were never actually filtered out.

Lint fix (cloud_license.py)

  • Resolved E402 (module-level import not at top of file) by restructuring imports.

Lint fix (setup.py)

  • Removed unused sys import.

CI

All checks passing (3.9 floor, 3.10, 3.11, 3.12, docker, wheel build, browser a11y).

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

…y exclusion

find_package_modules returns (package, module, filename) tuples.
m[0] is always the package name ("engraphis"), so the exclusion
filter never matched and .py sources would ship alongside compiled
extensions. Use m[1] to correctly exclude licensing and cloud_license.
@Coding-Dev-Tools Coding-Dev-Tools changed the title fix(lint): resolve E402 late import in cloud_license.py + remove unused sys in setup.py fix(build): correct setup.py exclusion filter (m[0]->m[1]) + resolve E402 late import in cloud_license.py Jul 21, 2026
@Coding-Dev-Tools
Coding-Dev-Tools merged commit 7b9de9d into main Jul 21, 2026
8 checks passed
@Coding-Dev-Tools
Coding-Dev-Tools deleted the fix/lint-e402-cloud-license branch July 21, 2026 06:00
Sign up for free to 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