ruff-pycharm-plugin icon indicating copy to clipboard operation
ruff-pycharm-plugin copied to clipboard

Config file is ignored when run ruff from the plugin

Open koxudaxi opened this issue 1 year ago • 8 comments

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:

  1. Add configs as pyproject.toml or ruff.toml in a project.
  2. Write code that violates the rules.
  3. 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

koxudaxi avatar Oct 13 '23 16:10 koxudaxi