From 02ee599c13ce83e6ec36c7842c476325f460060b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Ram=C3=ADrez?= Date: Mon, 2 Feb 2026 19:48:08 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20Tweak=20mypy=20config=20in=20pre?= =?UTF-8?q?-commit?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .pre-commit-config.yaml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 64b84bfbd..2b7ebdef1 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -32,10 +32,13 @@ repos: - id: local-mypy name: mypy check - entry: uv run mypy fastapi + entry: uv run mypy + args: + - --scripts-are-modules require_serial: true language: unsupported - pass_filenames: false + types: [python] + files: ^fastapi/.*\.py$ - id: add-permalinks-pages language: unsupported