File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 1515from databricks .labs .ucx .contexts .workspace_cli import WorkspaceContext , LocalCheckoutContext
1616from databricks .labs .ucx .hive_metastore .tables import What
1717from databricks .labs .ucx .install import AccountInstaller
18+ from databricks .labs .ucx .source_code .linters .files import LocalCodeLinter
1819
1920ucx = App (__file__ )
2021logger = get_logger (__file__ )
@@ -499,7 +500,8 @@ def lint_local_code(
499500 """Lint local code files looking for problems."""
500501 if ctx is None :
501502 ctx = LocalCheckoutContext (w )
502- ctx .local_code_linter .lint (prompts , None if path is None else Path (path ))
503+ linter : LocalCodeLinter = ctx .local_code_linter
504+ linter .lint (prompts , None if path is None else Path (path ))
503505
504506
505507if __name__ == "__main__" :
You can’t perform that action at this time.
0 commit comments