Skip to content

Conversation

@sbrugman
Copy link
Collaborator

No description provided.

@sbrugman sbrugman changed the title Ordeq static imports ordeq: static analysis of imports for FQNs Nov 22, 2025
@sbrugman sbrugman added the fix Something isn't working label Nov 22, 2025
@sbrugman sbrugman marked this pull request as ready for review November 24, 2025 10:58
Copilot AI review requested due to automatic review settings November 24, 2025 10:58
Copy link

Copilot AI left a 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.py module 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)

@sbrugman sbrugman force-pushed the ordeq-static-imports branch from a30e004 to 4d31041 Compare November 24, 2025 11:10
@sbrugman sbrugman enabled auto-merge (squash) November 24, 2025 11:21
@sbrugman sbrugman merged commit a0d421c into main Nov 24, 2025
40 checks passed
@sbrugman sbrugman deleted the ordeq-static-imports branch November 24, 2025 11:31
Josersanvil pushed a commit to Josersanvil/ordeq that referenced this pull request Nov 24, 2025
Josersanvil pushed a commit to Josersanvil/ordeq that referenced this pull request Nov 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants