ruff-pycharm-plugin
ruff-pycharm-plugin copied to clipboard
Config file is ignored when run ruff from the plugin
Describe the bug
Several users have pointed out a problem with config information in pyproject.toml
and ruff.toml
not being read.
However, the config information is applied when the ruff
command is invoked directly from the terminal.
I could not reproduce the problem in my environment, so I have created this issue to sort out and resolve the issue.
To Reproduce Steps to reproduce the behavior:
- Add configs as
pyproject.toml
orruff.toml
in a project. - Write code that violates the rules.
- See wrong warning
Expected behavior The plugin doesn't show wrong waring (respect configs)
Screenshots I can't reproduce the problem
Environments (please complete the following information):
- IDE: PyCharm 2023.3 EAP (Professional Edition)
- OS: Ubuntu 22.04.3 LTS
- Ruff Version 0.0.292
- Plugin version 0.0.24
Related Issues https://github.com/koxudaxi/ruff-pycharm-plugin/issues/277 https://plugins.jetbrains.com/plugin/20574-ruff/reviews#review=91176-91183 https://plugins.jetbrains.com/plugin/20574-ruff/reviews#review=90927-91184