ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Sublime​Linter-contrib-ruff

by kaste ST3

Adapter to the ruff linter

Details

  • 1.1.5
    1.1.4
  • github.​com
  • github.​com
  • 7 months ago
  • 1 month ago
  • 1 year ago

Installs

  • Total 506
  • Win 135
  • Mac 198
  • Linux 173
Mar 27 Mar 26 Mar 25 Mar 24 Mar 23 Mar 22 Mar 21 Mar 20 Mar 19 Mar 18 Mar 17 Mar 16 Mar 15 Mar 14 Mar 13 Mar 12 Mar 11 Mar 10 Mar 9 Mar 8 Mar 7 Mar 6 Mar 5 Mar 4 Mar 3 Mar 2 Mar 1 Feb 28 Feb 27 Feb 26 Feb 25 Feb 24 Feb 23 Feb 22 Feb 21 Feb 20 Feb 19 Feb 18 Feb 17 Feb 16 Feb 15 Feb 14 Feb 13 Feb 12 Feb 11 Feb 10
Windows 0 2 1 0 0 0 0 1 1 1 0 0 0 0 2 2 2 1 0 1 0 0 0 2 1 0 0 0 0 0 1 1 0 0 2 0 1 0 0 0 0 0 0 0 0 0
Mac 1 1 1 0 0 0 0 0 2 0 1 0 0 0 0 0 0 0 0 0 0 0 1 0 1 2 0 0 0 1 5 3 0 1 1 1 2 2 0 1 0 0 0 0 0 2
Linux 0 0 0 0 0 2 0 1 0 0 0 0 0 0 0 0 1 1 0 1 1 0 1 0 1 0 0 0 0 0 0 0 0 0 0 1 1 0 0 1 1 1 0 0 0 0
0246Mar 27Mar 24Mar 21Mar 18Mar 15Mar 12Mar 9Mar 6Mar 3Feb 28Feb 25Feb 22Feb 19Feb 16Feb 13Feb 10Mar 27 Linux: 0 Mac: 1 Windows: 0Mar 26 Linux: 0 Mac: 1 Windows: 2Mar 25 Linux: 0 Mac: 1 Windows: 1Mar 24 Linux: 0 Mac: 0 Windows: 0Mar 23 Linux: 0 Mac: 0 Windows: 0Mar 22 Linux: 2 Mac: 0 Windows: 0Mar 21 Linux: 0 Mac: 0 Windows: 0Mar 20 Linux: 1 Mac: 0 Windows: 1Mar 19 Linux: 0 Mac: 2 Windows: 1Mar 18 Linux: 0 Mac: 0 Windows: 1Mar 17 Linux: 0 Mac: 1 Windows: 0Mar 16 Linux: 0 Mac: 0 Windows: 0Mar 15 Linux: 0 Mac: 0 Windows: 0Mar 14 Linux: 0 Mac: 0 Windows: 0Mar 13 Linux: 0 Mac: 0 Windows: 2Mar 12 Linux: 0 Mac: 0 Windows: 2Mar 11 Linux: 1 Mac: 0 Windows: 2Mar 10 Linux: 1 Mac: 0 Windows: 1Mar 9 Linux: 0 Mac: 0 Windows: 0Mar 8 Linux: 1 Mac: 0 Windows: 1Mar 7 Linux: 1 Mac: 0 Windows: 0Mar 6 Linux: 0 Mac: 0 Windows: 0Mar 5 Linux: 1 Mac: 1 Windows: 0Mar 4 Linux: 0 Mac: 0 Windows: 2Mar 3 Linux: 1 Mac: 1 Windows: 1Mar 2 Linux: 0 Mac: 2 Windows: 0Mar 1 Linux: 0 Mac: 0 Windows: 0Feb 28 Linux: 0 Mac: 0 Windows: 0Feb 27 Linux: 0 Mac: 0 Windows: 0Feb 26 Linux: 0 Mac: 1 Windows: 0Feb 25 Linux: 0 Mac: 5 Windows: 1Feb 24 Linux: 0 Mac: 3 Windows: 1Feb 23 Linux: 0 Mac: 0 Windows: 0Feb 22 Linux: 0 Mac: 1 Windows: 0Feb 21 Linux: 0 Mac: 1 Windows: 2Feb 20 Linux: 1 Mac: 1 Windows: 0Feb 19 Linux: 1 Mac: 2 Windows: 1Feb 18 Linux: 0 Mac: 2 Windows: 0Feb 17 Linux: 0 Mac: 0 Windows: 0Feb 16 Linux: 1 Mac: 1 Windows: 0Feb 15 Linux: 1 Mac: 0 Windows: 0Feb 14 Linux: 1 Mac: 0 Windows: 0Feb 13 Linux: 0 Mac: 0 Windows: 0Feb 12 Linux: 0 Mac: 0 Windows: 0Feb 11 Linux: 0 Mac: 0 Windows: 0Feb 10 Linux: 0 Mac: 2 Windows: 0Mar 27 Linux: 0 Mac: 1 Windows: 0Mar 26 Linux: 0 Mac: 1 Windows: 2Mar 25 Linux: 0 Mac: 1 Windows: 1Mar 24 Linux: 0 Mac: 0 Windows: 0Mar 23 Linux: 0 Mac: 0 Windows: 0Mar 22 Linux: 2 Mac: 0 Windows: 0Mar 21 Linux: 0 Mac: 0 Windows: 0Mar 20 Linux: 1 Mac: 0 Windows: 1Mar 19 Linux: 0 Mac: 2 Windows: 1Mar 18 Linux: 0 Mac: 0 Windows: 1Mar 17 Linux: 0 Mac: 1 Windows: 0Mar 16 Linux: 0 Mac: 0 Windows: 0Mar 15 Linux: 0 Mac: 0 Windows: 0Mar 14 Linux: 0 Mac: 0 Windows: 0Mar 13 Linux: 0 Mac: 0 Windows: 2Mar 12 Linux: 0 Mac: 0 Windows: 2Mar 11 Linux: 1 Mac: 0 Windows: 2Mar 10 Linux: 1 Mac: 0 Windows: 1Mar 9 Linux: 0 Mac: 0 Windows: 0Mar 8 Linux: 1 Mac: 0 Windows: 1Mar 7 Linux: 1 Mac: 0 Windows: 0Mar 6 Linux: 0 Mac: 0 Windows: 0Mar 5 Linux: 1 Mac: 1 Windows: 0Mar 4 Linux: 0 Mac: 0 Windows: 2Mar 3 Linux: 1 Mac: 1 Windows: 1Mar 2 Linux: 0 Mac: 2 Windows: 0Mar 1 Linux: 0 Mac: 0 Windows: 0Feb 28 Linux: 0 Mac: 0 Windows: 0Feb 27 Linux: 0 Mac: 0 Windows: 0Feb 26 Linux: 0 Mac: 1 Windows: 0Feb 25 Linux: 0 Mac: 5 Windows: 1Feb 24 Linux: 0 Mac: 3 Windows: 1Feb 23 Linux: 0 Mac: 0 Windows: 0Feb 22 Linux: 0 Mac: 1 Windows: 0Feb 21 Linux: 0 Mac: 1 Windows: 2Feb 20 Linux: 1 Mac: 1 Windows: 0Feb 19 Linux: 1 Mac: 2 Windows: 1Feb 18 Linux: 0 Mac: 2 Windows: 0Feb 17 Linux: 0 Mac: 0 Windows: 0Feb 16 Linux: 1 Mac: 1 Windows: 0Feb 15 Linux: 1 Mac: 0 Windows: 0Feb 14 Linux: 1 Mac: 0 Windows: 0Feb 13 Linux: 0 Mac: 0 Windows: 0Feb 12 Linux: 0 Mac: 0 Windows: 0Feb 11 Linux: 0 Mac: 0 Windows: 0Feb 10 Linux: 0 Mac: 2 Windows: 0Mar 27 Linux: 0 Mac: 1 Windows: 0Mar 26 Linux: 0 Mac: 1 Windows: 2Mar 25 Linux: 0 Mac: 1 Windows: 1Mar 24 Linux: 0 Mac: 0 Windows: 0Mar 23 Linux: 0 Mac: 0 Windows: 0Mar 22 Linux: 2 Mac: 0 Windows: 0Mar 21 Linux: 0 Mac: 0 Windows: 0Mar 20 Linux: 1 Mac: 0 Windows: 1Mar 19 Linux: 0 Mac: 2 Windows: 1Mar 18 Linux: 0 Mac: 0 Windows: 1Mar 17 Linux: 0 Mac: 1 Windows: 0Mar 16 Linux: 0 Mac: 0 Windows: 0Mar 15 Linux: 0 Mac: 0 Windows: 0Mar 14 Linux: 0 Mac: 0 Windows: 0Mar 13 Linux: 0 Mac: 0 Windows: 2Mar 12 Linux: 0 Mac: 0 Windows: 2Mar 11 Linux: 1 Mac: 0 Windows: 2Mar 10 Linux: 1 Mac: 0 Windows: 1Mar 9 Linux: 0 Mac: 0 Windows: 0Mar 8 Linux: 1 Mac: 0 Windows: 1Mar 7 Linux: 1 Mac: 0 Windows: 0Mar 6 Linux: 0 Mac: 0 Windows: 0Mar 5 Linux: 1 Mac: 1 Windows: 0Mar 4 Linux: 0 Mac: 0 Windows: 2Mar 3 Linux: 1 Mac: 1 Windows: 1Mar 2 Linux: 0 Mac: 2 Windows: 0Mar 1 Linux: 0 Mac: 0 Windows: 0Feb 28 Linux: 0 Mac: 0 Windows: 0Feb 27 Linux: 0 Mac: 0 Windows: 0Feb 26 Linux: 0 Mac: 1 Windows: 0Feb 25 Linux: 0 Mac: 5 Windows: 1Feb 24 Linux: 0 Mac: 3 Windows: 1Feb 23 Linux: 0 Mac: 0 Windows: 0Feb 22 Linux: 0 Mac: 1 Windows: 0Feb 21 Linux: 0 Mac: 1 Windows: 2Feb 20 Linux: 1 Mac: 1 Windows: 0Feb 19 Linux: 1 Mac: 2 Windows: 1Feb 18 Linux: 0 Mac: 2 Windows: 0Feb 17 Linux: 0 Mac: 0 Windows: 0Feb 16 Linux: 1 Mac: 1 Windows: 0Feb 15 Linux: 1 Mac: 0 Windows: 0Feb 14 Linux: 1 Mac: 0 Windows: 0Feb 13 Linux: 0 Mac: 0 Windows: 0Feb 12 Linux: 0 Mac: 0 Windows: 0Feb 11 Linux: 0 Mac: 0 Windows: 0Feb 10 Linux: 0 Mac: 2 Windows: 0

Readme

Source
raw.​githubusercontent.​com

SublimeLinter-contrib-ruff

This linter plugin for SublimeLinter provides an interface to ruff. It will be used with files that have the “Python” syntax.

Installation

SublimeLinter must be installed in order to use this plugin.

Please use Package Control to install the linter plugin.

Before installing this plugin, you must ensure that ruff is installed on your system. Typically

pip install ruff
# or:
rye install ruff

will do that. You can also install it into a virtual environment and SublimeLinter will find it.

Quick Fixes

ruff provides fixes for some errors. These fixes are available in SublimeLinter as quick actions. See the Command Palette: SublimeLinter: Quick Action. (Also: https://github.com/SublimeLinter/SublimeLinter#quick-actionsfixers)

You may want to define a key binding:

// To trigger a quick action
    { "keys": ["ctrl+k", "ctrl+f"],
      "command": "sublime_linter_quick_actions"
    },

Settings

Additional SublimeLinter-ruff settings:

Setting Description
no-cache Default: True. Turn the cache off as this plugin runs on every python file by default. ruff is probably fast enough without a cache but you may turn this back “on” (false) on projects.
disable_if_not_dependency Default: False. If set to true, use only locally installed ruff executables from virtual environments or skip linting the project.
check_for_local_configuration Default: False. Set to true to check for a local “ruff.toml” configuration file. Skip running ruff if such a file cannot be found.[1]

[1] “pyproject.toml” detection is not implemented (yet?).