README#
- class src.ansys.pre_commit_hooks.quality_rules.readme.README#
Bases:
abc.ABCREADME rule family.
Base class of the README quality rules. Each rule is a subclass named
RMwith 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.readme import README
Attribute detail#
Method detail#
- static README.check(repository_root: pathlib.Path, readme_file: str | None) ansys.pre_commit_hooks.quality_rules.common.RuleCheckResult#
- Abstractmethod:
Evaluate a README rule.
- Parameters:
- repository_root
pathlib.Path Repository root directory.
- readme_file
strorNone Detected README path, or
Nonewhen no supported README exists.
- repository_root
- Returns: