erickgnavar / flymake-ruff

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

Inconsistency between flymake and CLI output for I001 #20

Open Duy-X opened 4 weeks ago

Duy-X commented 4 weeks ago

Hi,

I noticed a very specific issue where the flymake ouput is inconsistent with the ruff CLI output. This happens in particular when importing something from the repository I am working in (i.e local import):

In the first image, there is no blank line between the fastapi (third party dependency) import and the puzzler_backend import (which is from the actual repo/package I am working on. In this case, flymake gives no error (left panel and bottom right panel), however running ruff on the CLI gives an I001 error.

image

Conversely, if I add a blank line in between the aforementioned two imports, flymake complains there is an error, whilst the CLI says that there is no I001 error:

image

I am running the following:

erickgnavar commented 4 weeks ago

Hi, thanks for the detailed report, unfortunately I wasn't able to reproduce the bug, I'm using ruff=0.7.0, maybe can you give a try that version. I have it installed from homebrew