diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8a0b631..e97b1ed 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -48,6 +48,8 @@ repos: rev: v0.10.0.1 hooks: - id: shellcheck + name: run shellcheck + description: finds bugs in your shell scripts - repo: https://github.com/adrienverge/yamllint rev: v1.37.1 hooks: @@ -61,5 +63,7 @@ repos: rev: v1.34.0 hooks: - id: typos + name: run typos + description: check spelling with the typos crate files: \.(html|md|py|sh|ya?ml)$ args: [--config=.github/linters/.typos.toml] diff --git a/Makefile b/Makefile index 474062e..fb6e627 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,6 @@ PYTHON ?= python3 PIP := $(PYTHON) -m pip +PRECOMMIT ?= pre-commit .PHONY: install i check c checkinstall ci checkupdate cu help .DEFAULT_GOAL := help @@ -8,13 +9,13 @@ install i: ## Install Python dependencies from requirements.txt $(PIP) install -r requirements.txt check c: ## Run pre-commit checks on all files - pre-commit run --all-files + $(PRECOMMIT) run --all-files checkinstall ci: ## Install pre-commit hooks - pre-commit install + $(PRECOMMIT) install checkupdate cu: ## Update pre-commit hooks to the latest version - pre-commit autoupdate + $(PRECOMMIT) autoupdate help: ## Display this help message @echo "Usage: make "