PM010#

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

Bases: ProjectMetadata

Pyproject.toml references the LICENSE file.

Overview#

check

Return whether pyproject.toml references the license file.

Import detail#

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

Method detail#

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

Return whether pyproject.toml references the license file.