Dependabot#

class src.ansys.pre_commit_hooks.quality_rules.dependabot.Dependabot#

Bases: abc.ABC

Dependabot rule family with independent, typed repository checks.

Overview#

check

Evaluate a Dependabot rule.

Import detail#

from src.ansys.pre_commit_hooks.quality_rules.dependabot import Dependabot

Attribute detail#

Dependabot.family: ClassVar[str] = 'dependabot'#

Method detail#

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

Evaluate a Dependabot rule.

Parameters:
repository_rootpathlib.Path

Repository root directory.

readme_filestr or None

Detected README path, unused by this family.

Returns:
bool or str

Raw result consumed by the quality-report runner.