Skip to content

Commit

Permalink
feat(registry): add pylama linter (#523)
Browse files Browse the repository at this point in the history
  • Loading branch information
KaziSadmanAhmed committed Oct 8, 2022
1 parent aa6a8f8 commit d726743
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 @@ -154,6 +154,7 @@ return {
["puppet-editor-services"] = "mason-registry.puppet-editor-services",
["purescript-language-server"] = "mason-registry.purescript-language-server",
pydocstyle = "mason-registry.pydocstyle",
pylama = "mason-registry.pylama",
pylint = "mason-registry.pylint",
["pyproject-flake8"] = "mason-registry.pyproject-flake8",
pyre = "mason-registry.pyre",
Expand Down
11 changes: 11 additions & 0 deletions lua/mason-registry/pylama/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 = "pylama",
desc = [[Code audit tool for Python.]],
homepage = "https://klen.github.io/pylama/",
languages = { Pkg.Lang.Python },
categories = { Pkg.Cat.Linter },
install = pip3.packages { "pylama[all]", bin = { "pylama" } },
}
2 changes: 1 addition & 1 deletion lua/mason/mappings/language.lua
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ return {
protobuf = { "buf", "buf-language-server" },
puppet = { "puppet-editor-services" },
purescript = { "purescript-language-server" },
python = { "autopep8", "black", "blue", "debugpy", "flake8", "isort", "jedi-language-server", "mypy", "pydocstyle", "pylint", "pyproject-flake8", "pyre", "pyright", "python-lsp-server", "rstcheck", "sourcery", "vulture", "yapf" },
python = { "autopep8", "black", "blue", "debugpy", "flake8", "isort", "jedi-language-server", "mypy", "pydocstyle", "pylama", "pylint", "pyproject-flake8", "pyre", "pyright", "python-lsp-server", "rstcheck", "sourcery", "vulture", "yapf" },
r = { "r-languageserver" },
reason = { "reason-language-server" },
rescript = { "rescript-lsp" },
Expand Down

0 comments on commit d726743

Please sign in to comment.