syntastic icon indicating copy to clipboard operation
syntastic copied to clipboard

Add new checker script for Ruff

Open MarcSeebold opened this issue 2 years ago • 2 comments

Ruff is an extremely fast Python linter. Currently, it's not usable with Syntastic since there's no checker script for it.

MarcSeebold avatar Apr 25 '23 19:04 MarcSeebold

It seems that just copying the flake8 checker script and replacing "flake8" with "ruff" does the trick.

MarcSeebold avatar Apr 25 '23 19:04 MarcSeebold

Ruff is an extremely fast Python linter.

Could be, but syntastic is an extremely dead Vim plugin. You might consider switching to ALE.

It seems that just copying the flake8 checker script and replacing "flake8" with "ruff" does the trick.

Then you don't need any code changes, you just need to set syntastic_python_flake8_exec to ruff. Or read about duplicate checkers and do it properly. That is, if for whatever reasons you still insist on using syntastic.

lcd047 avatar Apr 25 '23 20:04 lcd047