elidhu / vscode-cornflakes-linter

A wrapper for the flake8 linter for vs code
MIT License
4 stars 4 forks source link

New, "native" Jupyter Notebook editor in VSCode makes cornflakes think each cell is a file. #8

Open shaperilio opened 3 years ago

shaperilio commented 3 years ago

Starting with VSCode 1.59, I appear to have been "forced" into using the new, native Jupyter Notebook editor (and interactive Python window).

The new editor seems to make your extension think each cell is a file:

image

I expected that, with # flake8: noqa at the top, no linting should occur in the whole notebook.

The behavior in the previous editor (from the Jupyter extension, if I understand correctly) was correct: a single # flake8: noqa caused the whole file to be ignored.

NireBryce commented 2 years ago

Bumping this, especially since it makes using nbdev frustrating. I realize this is a tiny package that likely wasn't planned to be maintained, but VSCode still doesn't support lintOnType for python with any other extension.

If it isn't a terribly hard fix, I think a lot of us would be appreciative.