File tree Expand file tree Collapse file tree 1 file changed +0
-22
lines changed
src/databricks/labs/ucx/source_code/notebooks Expand file tree Collapse file tree 1 file changed +0
-22
lines changed Original file line number Diff line number Diff line change @@ -307,28 +307,6 @@ def _linter(self, language: Language) -> Linter:
307
307
return self ._python_linter
308
308
return self ._context .linter (language )
309
309
310
- def _load_source_from_run_cell (self , run_cell : RunCell ) -> None :
311
- path = run_cell .maybe_notebook_path ()
312
- if path is None :
313
- return # malformed run cell already reported
314
- resolved = self ._path_lookup .resolve (path )
315
- if resolved is None :
316
- return # already reported during dependency building
317
- language = file_language (resolved )
318
- if language is not Language .PYTHON :
319
- return
320
- source = safe_read_text (resolved )
321
- if not source :
322
- return
323
- notebook = Notebook .parse (path , source , language )
324
- for cell in notebook .cells :
325
- if isinstance (cell , RunCell ):
326
- self ._load_source_from_run_cell (cell )
327
- continue
328
- if not isinstance (cell , PythonCell ):
329
- continue
330
- self ._python_linter .process_child_cell (cell .original_code )
331
-
332
310
@staticmethod
333
311
def name () -> str :
334
312
return "notebook-linter"
You can’t perform that action at this time.
0 commit comments