Open mrezzamoradi opened 1 month ago
Related (if not the same): the setting "Exclude files outside of the project" only applies to the "main" project, i.e., if activated, files in the second project will be excluded, regardless of that project's settings.
(Disabling the setting isn't an option for me, because then it will also reformat files in the git staging area, which I don't want)
Describe the bug Each project's setting should be respected even if both projects are opened in the same window.
I have two projects which one of them is formatted with ruff and want to continue to do so (project A), and the other one is not formatted by ruff and I don't want it to get formatted by ruff (project B). I have enabled the setting for project A to "Run ruff when the python file is saved" but disabled it for project B. When I open project B alone, it works as expected. However if I open project A alongside it in the same window, then the files in project B gets formatted by ruff on save.
To Reproduce Steps to reproduce the behavior:
Expected behavior The edited file of project B shouldn't get formatted by ruff on save.
Screenshots Project A:
![image](https://github.com/koxudaxi/ruff-pycharm-plugin/assets/6003890/c7a1b403-fc91-43f7-bf7a-747446ba4e9f)
Project B:
![image](https://github.com/koxudaxi/ruff-pycharm-plugin/assets/6003890/06857e0f-cd0a-452a-9783-c9dce387216e)
Environments (please complete the following information):
Additional context I'm using pyenv to manage python environment, but those projects are using different pyenv environments.