Make examples/ actually trigger the ty gate (#4541)

#4466 added examples/ to [tool.ty.src] include, but two filters still
excluded it: the ty prek hook's files: scope and the static-analysis
workflow's push path triggers. An examples-only commit or direct push
to main could skip the gate entirely.
This commit is contained in:
Jeremiah Lowin 2026-07-18 20:58:24 -04:00 committed by GitHub
commit 2ebf19e5e1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View file

@ -10,6 +10,7 @@ on:
- "fastmcp_slim/**" - "fastmcp_slim/**"
- "fastmcp_remote/**" - "fastmcp_remote/**"
- "tests/**" - "tests/**"
- "examples/**"
- "pyproject.toml" - "pyproject.toml"
- "uv.lock" - "uv.lock"
- ".github/workflows/**" - ".github/workflows/**"

View file

@ -29,7 +29,7 @@ repos:
entry: uv run --isolated ty check entry: uv run --isolated ty check
language: system language: system
types: [python] types: [python]
files: ^fastmcp_slim/|^tests/ files: ^fastmcp_slim/|^tests/|^examples/
pass_filenames: false pass_filenames: false
require_serial: true require_serial: true