Describe the bug
I've excluded my tests via pyproject.toml from ruff scanning. The plugin seems to try to ignore this setting and runs into problems, causing the whole file content to vanish.
I've since moved to exclude only certain rules within the tests directory, this seems to have fixed it.
This is not related to the new formatting option, as I observed the behaviour with and without this feature enabled.
Create a project with src and tests next to each other
Exclude tests from ruff processing fith exclude = ["tests"]
Enable the ruff plugin in PyCharm
Work with files in the tests directory
Expected behavior
It should respect the configuration in pyproject.toml and not process files that are excluded. If that's hard, at least, don't delete the contents of the file.
Environments (please complete the following information):
IDE: PyCharm Professional 2023.2.1
OS: macOS 14.0
Ruff Version 0.0.291
Plugin version 0.0.22
Additional context
Thank you for the fantastic plugin, and the quick addition of the formatting option! Not having to work with black and ruff at the same time helps to simplify the setup and reduces conflicts.
Describe the bug I've excluded my tests via pyproject.toml from ruff scanning. The plugin seems to try to ignore this setting and runs into problems, causing the whole file content to vanish.
I've since moved to exclude only certain rules within the tests directory, this seems to have fixed it.
This is not related to the new formatting option, as I observed the behaviour with and without this feature enabled.
Example config used:
What seems to work:
To Reproduce Steps to reproduce the behavior:
exclude = ["tests"]
tests
directoryExpected behavior It should respect the configuration in pyproject.toml and not process files that are excluded. If that's hard, at least, don't delete the contents of the file.
Environments (please complete the following information):
Additional context Thank you for the fantastic plugin, and the quick addition of the formatting option! Not having to work with black and ruff at the same time helps to simplify the setup and reduces conflicts.