PM027#

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

Bases: ProjectMetadata

No legacy setup.py or setup.cfg files are present.

Overview#

check

Warn when legacy packaging files are present.

Import detail#

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

Method detail#

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

Warn when legacy packaging files are present.