ruff: Exclude option ignored when directly calling dir/file
MWE:
[tool.ruff]
exclude = [ "blah" ]
blah/test.py
:
import os
Running ruff on .
returns nothing, but running ruff ./blah
or ruff ./blah/test.py
will return the diagnostics (F401) even if blah was excluded. Is this intentional?
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 15 (9 by maintainers)
(And, similarly, it might make sense to always pass that flag in the LSP context.)