You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
prek: workspace ruff and mypy hooks skip Python under plugins/ and ai-tutors/ on PRs #2201
The workspace-ruff-check, workspace-ruff-format and workspace-mypy hooks in .pre-commit-config.yaml only fire on PRs that touch tools/, so Python in the plugins and ai-tutors workspace members is only linted, formatted or type-checked on a PR that also touches a path the filter matches. It is checked on main, where CI runs --all-files, so a PR can go green and still break main.
The root pyproject.toml lists ai-tutors and plugins as [tool.uv.workspace] members, and tools/dev/run-workspace-check.sh checks every member, but no path under plugins/ or ai-tutors/ matches the filter.
How to reproduce
#2199 changed only plugins/magpie-setup/skills/isolated-setup-update/tests/test_comdev_mcp.py. On its PR run, ruff format (workspace) and mypy (workspace) printed (no files to check) Skipped, and prek passed. After the merge, prek on main failed on both hooks for that file (f91ddf36 and every merge after it).
Expected vs actual
Expected: a PR that changes Python in any workspace member runs the workspace ruff and mypy hooks.
Actual: only tools/ paths and the root pyproject.toml trigger them.
Surface area (optional)
Extending the filter with ^(plugins|ai-tutors)/.*\.py$ (or deriving it from the workspace members) would cover it. workspace-pytest selects members differently (tools/dev/ci-pytest-batches.py) and may be worth checking at the same time.
Activity