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

[TECH DEBT] Let LocalFileLinter reuse the Dependency instead falling back on its path #3641

Merged
merged 21 commits into from
Feb 5, 2025

Conversation

JCZuurmond
Copy link
Member

@JCZuurmond JCZuurmond commented Feb 5, 2025

Changes

Let LocalFileLinter reuse the Dependency instead falling back on its path as this introduce duplicate ways of loading files.

Linked issues

Progresses #3514
Breaks up #3520
Stacked on:

Functionality

  • modified existing command: databricks labs ucx migrate-local-code

Tests

  • manually tested
  • modified and added unit tests
  • modified and added integration tests

@JCZuurmond JCZuurmond added pr/do-not-merge this pull request is not ready to merge migrate/code Abstract Syntax Trees and other dark magic migrate/python Pull requests that update Python code python Pull requests that update Python code internal this pull request won't appear in release notes labels Feb 5, 2025
@JCZuurmond JCZuurmond self-assigned this Feb 5, 2025
@JCZuurmond JCZuurmond requested a review from a team as a code owner February 5, 2025 10:25
Copy link

github-actions bot commented Feb 5, 2025

✅ 57/57 passed, 2 skipped, 26m37s total

Running from acceptance #8200

yield Failure("unsupported-language", f"Language not supported yet for {self._path}", 0, 0, 1, 1)
else:
yield Failure("unknown-language", f"Cannot detect language for {self._path}", 0, 0, 1, 1)
source_container = self._dependency.load(self._path_lookup)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All that logic in the code before these changes is now part of the dependency loading

@JCZuurmond JCZuurmond enabled auto-merge February 5, 2025 12:49
@JCZuurmond JCZuurmond added this pull request to the merge queue Feb 5, 2025
Merged via the queue into main with commit c8859d8 Feb 5, 2025
7 checks passed
@JCZuurmond JCZuurmond deleted the tech_debt/let-file-linter-reuse-dependency branch February 5, 2025 13:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal this pull request won't appear in release notes migrate/code Abstract Syntax Trees and other dark magic migrate/python Pull requests that update Python code pr/do-not-merge this pull request is not ready to merge python Pull requests that update Python code
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants