vim-syntastic / syntastic

Syntax checking hacks for vim
Do What The F*ck You Want To Public License
11.3k stars 1.14k forks source link

Add new checker script for Ruff #2413

Open MarcSeebold opened 1 year ago

MarcSeebold commented 1 year ago

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

MarcSeebold commented 1 year ago

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

lcd047 commented 1 year ago

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.