From 7949d7a5cd60bea5f0ef94127cf5a0f48130f9f8 Mon Sep 17 00:00:00 2001 From: Pieter Viljoen Date: Wed, 30 Sep 2026 05:13:09 -0700 Subject: [PATCH] Drop the Path Argument From the Pre-Commit Snippet's Mypy Swap The type-check hook's name suggested `uvx mypy@latest .` as the mypy swap. A path argument overrides a `[tool.mypy] files` selection, so a repository adopting the swap verbatim checked a wider tree than CI. CI's type-check step names no path for a project configured at its own root, so the swap now names none either. Closes on promotion: #1188 --- catalog/snippets/pre-commit/.pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/catalog/snippets/pre-commit/.pre-commit-config.yaml b/catalog/snippets/pre-commit/.pre-commit-config.yaml index 9fbda8740..4ffb8a94d 100644 --- a/catalog/snippets/pre-commit/.pre-commit-config.yaml +++ b/catalog/snippets/pre-commit/.pre-commit-config.yaml @@ -24,7 +24,7 @@ repos: language: system pass_filenames: false - id: type-check - name: pyright (swap for "uvx mypy@latest ." if this repo's CI runs mypy instead) + name: pyright (swap for "uvx mypy@latest" if this repo's CI runs mypy instead) entry: uvx pyright@latest language: system pass_filenames: false