Add anisble lint to helpers

This commit is contained in:
ViViDboarder 2024-10-01 12:58:43 -07:00
parent e0cb6bb7af
commit 4ff38af295

View File

@ -8,23 +8,24 @@ from enum import Enum
class Language(Enum): class Language(Enum):
PYTHON = "python" ANSIBLE = "ansible"
CSS = "css"
VIM = "vim"
NEOVIM = "neovim"
YAML = "yaml"
TEXT = "text"
GO = "go"
LUA = "lua"
DOCKER = "docker"
TERRAFORM = "terraform"
RUST = "rust"
BASH = "bash" BASH = "bash"
KOTLIN = "kotlin" CSS = "css"
JAVASCRIPT = "javascript" DOCKER = "docker"
GO = "go"
HTML = "html" HTML = "html"
JAVASCRIPT = "javascript"
JSON = "json" JSON = "json"
KOTLIN = "kotlin"
LUA = "lua"
NEOVIM = "neovim"
PYTHON = "python"
RUST = "rust"
TERRAFORM = "terraform"
TEXT = "text"
VIM = "vim"
WEB = "web" WEB = "web"
YAML = "yaml"
def command_exists(command: str) -> bool: def command_exists(command: str) -> bool:
@ -118,6 +119,8 @@ def install_linters(langs: set[Language]):
if Language.TEXT in langs: if Language.TEXT in langs:
maybe_npm_install("alex", "write-good") maybe_npm_install("alex", "write-good")
maybe_pip_install("proselint") maybe_pip_install("proselint")
if Language.ANSIBLE in langs:
maybe_pip_install("ansible-lint")
if Language.GO in langs: if Language.GO in langs:
maybe_run( maybe_run(
"release-gitter", "release-gitter",