Skip to content

CLI: Mono-repository support #819

@futurewasfree

Description

@futurewasfree

Question

From cli output it's not obvious what project root would be set to if no --project or --python provided.
Seems to be the same with cwd?

   --project <PROJECT>
          Run the command within the given project directory.

          All `pyproject.toml` files will be discovered by walking up the directory tree from the given project directory, as will the project's virtual environment
          (`.venv`) unless the `venv-path` option is set.

          Other command-line arguments (such as relative paths) will be resolved relative to the current working directory.

      --python <PATH>
          Path to the Python environment.

          ty uses the Python environment to resolve type information and third-party dependencies.

          If not specified, ty will attempt to infer it from the `VIRTUAL_ENV` or `CONDA_PREFIX` environment variables, or discover a `.venv` directory in the project root
          or working directory.
...

Expectation might be: ty would still walk down the directory, see uv's pyproject.toml and .venv there and activate it?

Version

ty 0.0.1-alpha.14 (3ececb0 2025-07-08)

Sub-issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    cliRelated to the command-line interface

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions