Skip to content
This repository was archived by the owner on Feb 5, 2026. It is now read-only.
This repository was archived by the owner on Feb 5, 2026. It is now read-only.

Rye test is not scoped to workspace members #853

@thoward27

Description

@thoward27

Steps to Reproduce

  1. Create a new virtual rye project with one or more members.
  2. Define additional python packages outside of the members directory.
  3. Run rye test --all

At this point, rye is trying to run every test it can find, not just tests in my workspace members.

Example layout for a large monorepo

Structure:

project/
  crates/ # Rust crates published to Crates.IO
  pypi/ # Python wheels published to pypi
  tools/ # Random tools that I don't care about

Root toml:

[project]
name = "project"
version = "0.1.0"
description = "Add your description here"
authors = [
    { name = "Bob", email = "Bob@bob.bob" }
]
dependencies = []
readme = "README.md"
requires-python = ">= 3.9"

[tool.rye]
managed = true
virtual = true
dev-dependencies = [
    "pytest>=8.0.2",
]

[tool.rye.workspace]
members = ["pypi/*"]

Expected Result

I expect that rye will only run the tests for project members in pypi/.

Actual Result

Rye is running every test file in the entire repo, including the tools directory.

Version Info

rye 0.28.0
commit: 0.28.0 (c44dc7e 2024-03-07)
platform: macos (aarch64)
self-python: cpython@3.12.2
symlink support: true
uv enabled: false

Stacktrace

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions