Skip to content

Commit 42b93ff

Browse files
committed
build: a make target to run pre-commit checks
1 parent 8709a53 commit 42b93ff

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,14 @@ install: ## Install the developer tools
6464

6565
##@ Tests and quality checks
6666

67-
.PHONY: lint
67+
.PHONY: lint precommit
6868

6969
lint: ## Run linters and checkers.
7070
tox -q -e lint
7171

72+
precommit: ## Run the pre-commit checks.
73+
PYTHONWARNDEFAULTENCODING= pre-commit run --all-files
74+
7275

7376
##@ Metacov: coverage measurement of coverage.py itself
7477
# See metacov.ini for details.

0 commit comments

Comments
 (0)