PM025#

class src.ansys.pre_commit_hooks.quality_rules.project_metadata.PM025#

Bases: ProjectMetadata

The [build-system] table has a non-empty requires list.

Overview#

check

Return whether build-system exists and declares at least one requirement.

Import detail#

from src.ansys.pre_commit_hooks.quality_rules.project_metadata import PM025

Method detail#

static PM025.check(repository_root: pathlib.Path, readme_file: str | None) → ansys.pre_commit_hooks.quality_rules.common.RuleCheckResult#

Return whether build-system exists and declares at least one requirement.