Commit Graph

4 Commits

Author SHA1 Message Date
Chris Peterson b56ea4508f 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 <file1> <file2> ..."
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.
2024-05-02 10:44:32 -07:00
Dan Bungert 13d68ecf89 pre-commit: simplify spelling invocation 2024-04-11 08:10:14 -06:00
Chris Peterson 5a1b0e35d9 pre-commit: add spelling check
Check for any changed .rst files in the doc/ directory and run
`make spelling` if any changes are detected.

The files directives per hook have to be more restrictive than the
global hook, so this also slightly changes the files match for
the other hooks.
2024-04-05 08:58:54 -07:00
Dan Bungert 88a584e040 add .pre-commit-config.yaml 2023-07-25 15:28:44 -06:00