Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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]
7 changes: 4 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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 <target>"
Expand Down