Skip to content

run() now reparses imports and re-walks the AST once per configured --project-packages entry (each ImportTracker.visit() + InheritanceVisitor.visit()), which makes runtime scale linearly with the number of packages. Consider changing ImportTracker to accept a set of project packages and classify internal when source_module in project_packages, so the file is visited only once. #38

Description

@steven-cutting

run() now reparses imports and re-walks the AST once per configured --project-packages entry (each ImportTracker.visit() + InheritanceVisitor.visit()), which makes runtime scale linearly with the number of packages. Consider changing ImportTracker to accept a set of project packages and classify internal when source_module in project_packages, so the file is visited only once.

Originally posted by @copilot-pull-request-reviewer in #34 (comment)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions