Skip to content

Commit afb391c

Browse files
authored
Clean up the Makefile and pre-commit config (#45)
1 parent 9d21022 commit afb391c

2 files changed

Lines changed: 8 additions & 3 deletions

File tree

.pre-commit-config.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ repos:
4848
rev: v0.10.0.1
4949
hooks:
5050
- id: shellcheck
51+
name: run shellcheck
52+
description: finds bugs in your shell scripts
5153
- repo: https://github.com/adrienverge/yamllint
5254
rev: v1.37.1
5355
hooks:
@@ -61,5 +63,7 @@ repos:
6163
rev: v1.34.0
6264
hooks:
6365
- id: typos
66+
name: run typos
67+
description: check spelling with the typos crate
6468
files: \.(html|md|py|sh|ya?ml)$
6569
args: [--config=.github/linters/.typos.toml]

Makefile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
PYTHON ?= python3
22
PIP := $(PYTHON) -m pip
3+
PRECOMMIT ?= pre-commit
34

45
.PHONY: install i check c checkinstall ci checkupdate cu help
56
.DEFAULT_GOAL := help
@@ -8,13 +9,13 @@ install i: ## Install Python dependencies from requirements.txt
89
$(PIP) install -r requirements.txt
910

1011
check c: ## Run pre-commit checks on all files
11-
pre-commit run --all-files
12+
$(PRECOMMIT) run --all-files
1213

1314
checkinstall ci: ## Install pre-commit hooks
14-
pre-commit install
15+
$(PRECOMMIT) install
1516

1617
checkupdate cu: ## Update pre-commit hooks to the latest version
17-
pre-commit autoupdate
18+
$(PRECOMMIT) autoupdate
1819

1920
help: ## Display this help message
2021
@echo "Usage: make <target>"

0 commit comments

Comments
 (0)