Closed doolio closed 10 months ago
I haven't used python-flymake-command
, doing this it will have the same behaviour?
Not quite. I've since learned that one should set that parameter to something like:
("ruff" "--quiet" "--stdin-filename=stdin" "-"))
It works. However, I'm not sure if it achieves the same as your package or if your solution offers other niceties.
I just tested the code python-flymake-command
and it works pretty well, by now the only differences with this package will be:
flymake-ruff
show a prefix in the error so we can now this was produced by ruffflymake-ruff
support to use a config file, in case it found inside the project it will use it
flymake-ruff
show a prefix in the error so we can now this was produced by ruff
Yes, I haven't figured out how to do so yet. It should be possible though.
flymake-ruff
support to use a config file, in case it found inside the project it will use it
I haven't tested all locations yet but it picks up a config at ~/.confg/ruff/ruff.toml
automatically. IIUC correctly it is ruff
anyway that checks for the presence of the config file in the allowed locations.
flymake-ruff
show a prefix in the error so we can now this was produced by ruffYes, I haven't figured out how to do so yet. It should be possible though.
FYI, when using Eglot the errors reported via flymake do include a ruff
prefix.
Edit: But I believe that is information provided by the :source
parameter coming from the server.
it looks like it has similar behaviour, however flymake-ruff
will still be alive as a separate package, maybe in the future I'll add some other features. Thanks for the input :)
This is more a question than an issue. Is
flymake-ruff
necessary if one updates thepython-flymake-command
setting to be something like("ruff check --watch")
(default is("pytflakes")
? And if so should one update that setting as well?