koxudaxi / ruff-pycharm-plugin

PyCharm plugin for ruff. This plugin provides reformat code using ruff.
MIT License
184 stars 7 forks source link

Ruff v0.5.0 deprecated `ruff <path>` in favor of `ruff check <path>` #467

Open sneakers-the-rat opened 3 weeks ago

sneakers-the-rat commented 3 weeks ago

Describe the bug PyCharm raises an IDE error from the plugin:

Caused by: The following command was executed:

/Users/jonny/git/p2p-ld/nwb-linkml/.venv/bin/ruff --exit-zero --no-cache --force-exclude --no-fix --output-format json -

The exit code: 1
The error output of the command:

error: `ruff <path>` has been removed. Use `ruff check <path>` instead.

To Reproduce Steps to reproduce the behavior:

  1. Have installed ruff >=0.5.0
  2. use tool as normal

Expected behavior To not error on the ruff call :)

Environments (please complete the following information):