Skip to content

Commit

Permalink
Makefile: add a check-local target
Browse files Browse the repository at this point in the history
Add an intermediate `check-local' target to the Makefile, to run all the
verifications on the repository, which do not connect to the internet (i.e.
everything except sphinx `linkcheck').

No functional change to the check target, which depends on both check-local
and linkcheck targets.

Signed-off-by: Vincent Stehlé <[email protected]>
  • Loading branch information
vstehle committed Jan 14, 2025
1 parent dcceaa6 commit 26c17b1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,15 @@ help:
@echo
@echo 'Use "make check" to perform verifications on this repository.'

.PHONY: help Makefile check
.PHONY: help Makefile check check-local

check:
check-local:
! grep -r --file=.typos.txt --exclude=.typos.txt --exclude-dir=.git
yamllint .
flake8 .
mypy .
$(SPHINXBUILD) -M linkcheck "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

check: check-local linkcheck

# Catch-all target: route all unknown targets to Sphinx using the new
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
Expand Down

0 comments on commit 26c17b1

Please sign in to comment.