-
Notifications
You must be signed in to change notification settings - Fork 7
ordeq: static analysis of imports for FQNs
#413
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
ordeq: static analysis of imports for FQNs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR introduces static analysis capabilities for extracting import information from Python modules to determine Fully Qualified Names (FQNs). The implementation adds a new internal module _static.py with functions to parse module source code and build import mappings.
Key changes:
- New
_static.pymodule with AST-based import parsing functions - Snapshot tests covering various example projects to validate import resolution
- Updated type checking snapshot reflecting reduced error count
Reviewed changes
Copilot reviewed 12 out of 12 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| packages/ordeq/src/ordeq/_static.py | New module implementing _module_to_ast and _module_to_imports functions for static import analysis using AST parsing |
| packages/ordeq/tests/resources/static/module_to_import_*.py | Test resources exercising import resolution across different project structures (rag pipeline, nested packages, etc.) |
| packages/ordeq/tests/snapshots/static/module_to_import_*.snapshot.md | Expected output snapshots validating correct import-to-module mapping for test cases |
| packages/ordeq/tests/snapshots/typing.snapshot.md | Updated snapshot showing fewer type checking errors (29 vs 32) with more files checked (280 vs 276) |
a30e004 to
4d31041
Compare
No description provided.