Hi, I work with a monorepo where I have multiple projects that we coordinate using workspaces from uv. Currently, to type check with ty I was first syncing my environment using uv sync --all-packages --all-groups and then running ty with uvx ty check and therefore ty was using the .venv containing all the dependencies.
When I wanted to use the pre-commit of ty at the root of the repo, I saw that the command --all-groups was available, but the --all-packages not.
For example, in my pre-commit file I have the following:
- repo: https://github.com/astral-sh/ty-pre-commit
rev: v0.0.56
hooks:
- id: ty
args: [--all-groups, --all-packages]
which fails with the following error
ty.......................................................................Failed
- hook id: ty
- exit code: 2
error: unexpected argument '--all-packages' found
tip: a similar argument exists: '--reinstall-package'
Usage: uv check --quiet... --ty-version <TY_VERSION> --all-groups --reinstall-package <REINSTALL_PACKAGE>
For more information, try '--help'
I was therefore wandering if this was planned to be covered later or if there is another way to cover this (besides adding n ty invocation with --project for every project n in my repo).
Thanks in advance for all the great work
Hi, I work with a monorepo where I have multiple projects that we coordinate using workspaces from uv. Currently, to type check with ty I was first syncing my environment using
uv sync --all-packages --all-groupsand then running ty withuvx ty checkand therefore ty was using the .venv containing all the dependencies.When I wanted to use the pre-commit of ty at the root of the repo, I saw that the command --all-groups was available, but the --all-packages not.
For example, in my pre-commit file I have the following:
which fails with the following error
I was therefore wandering if this was planned to be covered later or if there is another way to cover this (besides adding n ty invocation with --project for every project n in my repo).
Thanks in advance for all the great work