My project is located in a directory inside WSL. Ruff is installed there as well. When I specify the path to ruff.toml through pycharm, a relative path from wsl is inserted in the “Ruff config file” field, which leads to an error when forming a full path to the config file.
The solution to the problem is manual editing of ruff.xml in .idea/. If only “ruff.toml” is left in the path, the path to it will be formed correctly.
To Reproduce
Steps to reproduce the behavior:
Create project in wsl directory
install ruff on wsl
create config file in root project directory
Open this directory in PyCharm from Windows
Expected behavior
A correct parsing of the path to the config file or the ability to specify a relative path
Screenshots
Ruff executable and ruff config file settings:
Error:
Environments (please complete the following information):
Describe the bug
My project is located in a directory inside WSL. Ruff is installed there as well. When I specify the path to ruff.toml through pycharm, a relative path from wsl is inserted in the “Ruff config file” field, which leads to an error when forming a full path to the config file.
The solution to the problem is manual editing of
ruff.xml
in.idea/
. If only “ruff.toml” is left in the path, the path to it will be formed correctly.To Reproduce Steps to reproduce the behavior:
Expected behavior A correct parsing of the path to the config file or the ability to specify a relative path
Screenshots
Ruff executable and ruff config file settings:![image](https://github.com/koxudaxi/ruff-pycharm-plugin/assets/36041629/131c4a44-f70f-4246-ab55-823016b065da)
Error:![image](https://github.com/koxudaxi/ruff-pycharm-plugin/assets/36041629/629ab681-e4e8-478a-b7ed-6ec6a38b8d78)
Environments (please complete the following information):
PyCharm Professional 2023.3.2
Windows 10 + WSL (Ubuntu 22.04)
0.1.9
0.0.29