Python Lint

Is there any way of creating a linter for python?

You’d have to find some kind of Python linter that can run in the browser, wrap it to convert the diagnostics it outputs to the format CodeMirror expects, wrap it with linter, and use it as an extension.

1 Like

I faced this need while working on ViperIDE.
It turned out to be much easier than I anticipated, thanks to WebAssembly and the Ruff Python linter.

Result:

1 Like