From b56ea4508fa42d92ac0a5b88798fde0b7dba103f Mon Sep 17 00:00:00 2001 From: Chris Peterson Date: Thu, 2 May 2024 10:44:32 -0700 Subject: [PATCH] pre-commit: don't pass file names to spell check With "pass_filenames: True" (the default) the spell check entry will be invoked as "make -C doc spelling ..." which will cause the default Make target to be run for the specified files, leading to errors like: . .sphinx/venv/bin/activate; sphinx-build -M doc/some_file "." "_build" Running Sphinx v7.3.7 Sphinx error: Builder name doc/some_file not registered or available through entry point Since the spelling target will check all files, we can suppress sending any filenames. --- .pre-commit-config.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d1d53f89..562edab0 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -18,3 +18,4 @@ repos: language: system entry: make -C doc spelling files: "doc/.*rst" + pass_filenames: false