Skip to content
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

Support relative imports in AddImportsVisitor. #585

Merged
merged 8 commits into from
Jan 8, 2022
Merged

Support relative imports in AddImportsVisitor. #585

merged 8 commits into from
Jan 8, 2022

Commits on Jan 6, 2022

  1. Support relative imports in AddImportsVisitor.

    * Adds an Import dataclass to represent a single imported object
    * Refactors AddImportsVisitor to pass around Import objects
    * Separates out the main logic in get_absolute_module_for_import so that
      it can be used to resolve relative module names outside of a cst.Import
      node
    * Resolves relative module names in AddImportsVisitor if we have a
      current module name set.
    
    Fixes #578
    martindemello committed Jan 6, 2022
    Configuration menu
    Copy the full SHA
    f3cbe02 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3221f97 View commit details
    Browse the repository at this point in the history

Commits on Jan 7, 2022

  1. Configuration menu
    Copy the full SHA
    df1bb6a View commit details
    Browse the repository at this point in the history
  2. run ufmt

    martindemello committed Jan 7, 2022
    Configuration menu
    Copy the full SHA
    b510a18 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    3087d4f View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    8f898b7 View commit details
    Browse the repository at this point in the history
  5. fix lint errors

    martindemello committed Jan 7, 2022
    Configuration menu
    Copy the full SHA
    d2429cf View commit details
    Browse the repository at this point in the history
  6. fix some ufmt issues

    martindemello committed Jan 7, 2022
    Configuration menu
    Copy the full SHA
    79d7acd View commit details
    Browse the repository at this point in the history