Skip to content

Project¤

Project dataclass ¤

Project(
    name: str,
    version: Optional[str] = None,
    repository_url: Optional[str] = None,
)

Metadata about the project for which tests are run.

name instance-attribute ¤

name: str

The name of the project. Project name is detected from pyproject.toml file if the file exits.

repository_url class-attribute instance-attribute ¤

repository_url: Optional[str] = None

The URL of the project's repository. Repositor URL is detected from pyproject.toml file if the file exits. The fields 'repository' and 'source' are looked for (case-insensitive) in respective order, and the first one found is used.

version class-attribute instance-attribute ¤

version: Optional[str] = None

The version of the project. Project version is detected using importlib.metadata if pyproject.toml file if the file exits.