mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-09 07:09:11 +02:00
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:
parent
83702a41f8
commit
2ebf19e5e1
2 changed files with 2 additions and 1 deletions
1
.github/workflows/run-static.yml
vendored
1
.github/workflows/run-static.yml
vendored
|
|
@ -10,6 +10,7 @@ on:
|
|||
- "fastmcp_slim/**"
|
||||
- "fastmcp_remote/**"
|
||||
- "tests/**"
|
||||
- "examples/**"
|
||||
- "pyproject.toml"
|
||||
- "uv.lock"
|
||||
- ".github/workflows/**"
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ repos:
|
|||
entry: uv run --isolated ty check
|
||||
language: system
|
||||
types: [python]
|
||||
files: ^fastmcp_slim/|^tests/
|
||||
files: ^fastmcp_slim/|^tests/|^examples/
|
||||
pass_filenames: false
|
||||
require_serial: true
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue