Skip to content

prek: workspace ruff and mypy hooks skip Python under plugins/ and ai-tutors/ on PRs #2201

Closed

Description

@KatalKavya96

What's broken

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.

Which layer

CI / dev loop. All three hooks share this filter:

files: ^(tools/[^/]+(/[^/]+)?/(src|tests|pyproject\.toml)|pyproject\.toml|tools/dev/run-workspace-check\.sh)

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

  1. added
    bug
    family:ci
    on Nov 19, 2026
  2. added
    substrate:framework-dev
    on Nov 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugfamily:cifamily:toolssubstrate:framework-dev

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions