Skip to content

Commit

Permalink
feat(registry): add ruff (williamboman#653)
Browse files Browse the repository at this point in the history
  • Loading branch information
lkhphuc authored Nov 9, 2022
1 parent ce84338 commit 4fb7c00
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
1 change: 1 addition & 0 deletions lua/mason-registry/index.lua
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ return {
rstcheck = "mason-registry.rstcheck",
rubocop = "mason-registry.rubocop",
["ruby-lsp"] = "mason-registry.ruby-lsp",
ruff = "mason-registry.ruff",
["rust-analyzer"] = "mason-registry.rust-analyzer",
rustfmt = "mason-registry.rustfmt",
["salt-lsp"] = "mason-registry.salt-lsp",
Expand Down
11 changes: 11 additions & 0 deletions lua/mason-registry/ruff/init.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
local Pkg = require "mason-core.package"
local pip3 = require "mason-core.managers.pip3"

return Pkg.new {
name = "ruff",
desc = [[An extremely fast Python linter, written in Rust.]],
homepage = "https://github.com/charliermarsh/ruff/",
languages = { Pkg.Lang.Python },
categories = { Pkg.Cat.Linter },
install = pip3.packages { "ruff", bin = { "ruff" } },
}
2 changes: 1 addition & 1 deletion lua/mason/mappings/language.lua
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ return {
protobuf = { "buf", "buf-language-server", "protolint" },
puppet = { "puppet-editor-services" },
purescript = { "purescript-language-server" },
python = { "autoflake", "autopep8", "black", "blue", "debugpy", "flake8", "isort", "jedi-language-server", "mypy", "pydocstyle", "pylama", "pylint", "pyproject-flake8", "pyre", "pyright", "python-lsp-server", "rstcheck", "sourcery", "vulture", "yapf" },
python = { "autoflake", "autopep8", "black", "blue", "debugpy", "flake8", "isort", "jedi-language-server", "mypy", "pydocstyle", "pylama", "pylint", "pyproject-flake8", "pyre", "pyright", "python-lsp-server", "rstcheck", "ruff", "sourcery", "vulture", "yapf" },
r = { "r-languageserver" },
reason = { "reason-language-server" },
rescript = { "rescript-lsp" },
Expand Down

0 comments on commit 4fb7c00

Please sign in to comment.