erickgnavar / flymake-ruff

flymake plugin for ruff linter
GNU General Public License v3.0
37 stars 6 forks source link

Doesn't find ruff via envrc #11

Closed dpassen closed 11 months ago

dpassen commented 11 months ago

I have ruff installed in my virtual environment and use the envrc package and direnv to put ruff on my path. This is done in a buffer-local way.

But because flymake-ruff runs against a temporary buffer, https://github.com/erickgnavar/flymake-ruff/blob/1355c72cd216ca4a18d3d3a065aa4a7ed1b2871c/flymake-ruff.el#L59-L61 ruff is not on the path.

Is there a workaround for this?