diff --git a/Makefile b/Makefile index 2c95cf3dcb..bf4dd2dbfb 100644 --- a/Makefile +++ b/Makefile @@ -18,7 +18,7 @@ PYTHON := $(shell command -v python || command -v python3 || echo python) PIP := $(PYTHON) -m pip -.PHONY: check checkinstall checkupdate install +.PHONY: check checkinstall checkupdate createwordlist install check: checkinstall @echo "Running pre-commit checks..." @@ -32,6 +32,10 @@ checkupdate: @echo "Updating pre-commit hooks..." pre-commit autoupdate +createwordlist: install + @echo "Regenerating the ignored words list codespell.txt" + codespell --skip='./extras' | cut -f2 -d' ' | tr A-Z a-z | sort | uniq > .github/linters/codespell.txt + install: @echo "Installing dependencies..." @if [ -f requirements-dev.txt ]; then \ diff --git a/requirements-dev.txt b/requirements-dev.txt index 416634f528..72c7776316 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -1 +1,2 @@ +codespell pre-commit