From 4ff38af295ee448438c338a9a2c06d6a215a1cea Mon Sep 17 00:00:00 2001 From: ViViDboarder Date: Tue, 1 Oct 2024 12:58:43 -0700 Subject: [PATCH] Add anisble lint to helpers --- install-helpers.py | 29 ++++++++++++++++------------- 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/install-helpers.py b/install-helpers.py index ad6eefd..fe97612 100755 --- a/install-helpers.py +++ b/install-helpers.py @@ -8,23 +8,24 @@ from enum import Enum class Language(Enum): - PYTHON = "python" - CSS = "css" - VIM = "vim" - NEOVIM = "neovim" - YAML = "yaml" - TEXT = "text" - GO = "go" - LUA = "lua" - DOCKER = "docker" - TERRAFORM = "terraform" - RUST = "rust" + ANSIBLE = "ansible" BASH = "bash" - KOTLIN = "kotlin" - JAVASCRIPT = "javascript" + CSS = "css" + DOCKER = "docker" + GO = "go" HTML = "html" + JAVASCRIPT = "javascript" JSON = "json" + KOTLIN = "kotlin" + LUA = "lua" + NEOVIM = "neovim" + PYTHON = "python" + RUST = "rust" + TERRAFORM = "terraform" + TEXT = "text" + VIM = "vim" WEB = "web" + YAML = "yaml" def command_exists(command: str) -> bool: @@ -118,6 +119,8 @@ def install_linters(langs: set[Language]): if Language.TEXT in langs: maybe_npm_install("alex", "write-good") maybe_pip_install("proselint") + if Language.ANSIBLE in langs: + maybe_pip_install("ansible-lint") if Language.GO in langs: maybe_run( "release-gitter",