Labels#
- class src.ansys.pre_commit_hooks.quality_rules.labels.Labels#
Bases:
abc.ABCGitHub label rule family.
Base class of the label quality rules. Each rule is a subclass named
LBwith a staticcheckmethod that evaluates the label configuration independently. Missing or unreadable configuration is reported as an error rather than skipped.
Overview#
Import detail#
from src.ansys.pre_commit_hooks.quality_rules.labels import Labels
Attribute detail#
Method detail#
- static Labels.check(repository_root: pathlib.Path, readme_file: str | None) ansys.pre_commit_hooks.quality_rules.common.RuleCheckResult#
- Abstractmethod:
Evaluate a label rule.
- Parameters:
- repository_root
pathlib.Path Repository root directory.
- readme_file
strorNone Detected README path, unused by this rule family.
- repository_root
- Returns: