CICD#
- class src.ansys.pre_commit_hooks.quality_rules.cicd.CICD#
Bases:
abc.ABCCI/CD rule family.
Base class of the CI/CD quality rules. Each rule is a subclass named
CIwith a staticcheckmethod that receives the repository root and the name of the detected README file.
Overview#
Import detail#
from src.ansys.pre_commit_hooks.quality_rules.cicd import CICD
Attribute detail#
Method detail#
- static CICD.check(repository_root: pathlib.Path, readme_file: str | None) ansys.pre_commit_hooks.quality_rules.common.RuleCheckResult#
- Abstractmethod:
Evaluate a CI/CD rule.
- Parameters:
- repository_root
pathlib.Path Repository root directory.
- readme_file
strorNone Detected README path, or
Nonewhen no supported README exists.
- repository_root
- Returns: