CI: Run the style-check unit tests in checkformat:scripts

libeigen/eigen!2984

Co-authored-by: Rasmus Munk Larsen <rmlarsen@gmail.com>
diff --git a/.agents/ci.md b/.agents/ci.md
index 0c7fd7c..3aa55fc 100644
--- a/.agents/ci.md
+++ b/.agents/ci.md
@@ -239,7 +239,10 @@
 the edited `Eigen/src` header, the way `ci/scripts/run-clang-tidy.sh` does for merge requests. It skips silently when
 clang-tidy is absent, and shows the user a non-blocking notice when a file's translation unit does not compile.
 
-Claude Code sessions run both automatically through the hooks registered in `.claude/settings.json`.
+Claude Code sessions run both automatically through the hooks registered in `.claude/settings.json`. Their unit
+tests, [`scripts/test_check_style.py`](../scripts/test_check_style.py) and
+[`scripts/test_clang_tidy_hook.py`](../scripts/test_clang_tidy_hook.py), run in `checkformat:scripts`; run them after
+changing either script.
 
 The whole-tree codespell invocation used by CI can expose pre-existing findings. Do not modify unrelated files merely
 to make a local broad scan clean. In the current CI configuration, clang-format, codespell, and clang-tidy jobs are
diff --git a/ci/checkformat.gitlab-ci.yml b/ci/checkformat.gitlab-ci.yml
index a44cceb..b86f3e4 100644
--- a/ci/checkformat.gitlab-ci.yml
+++ b/ci/checkformat.gitlab-ci.yml
@@ -55,6 +55,7 @@
   script:
     - python3 scripts/test_affected_tests.py
     - python3 ci/scripts/test_test_cache.py
+    - python3 scripts/test_check_style.py
     - python3 scripts/test_clang_tidy_hook.py
 
 checkformat:clangtidy: