RM006#
- class src.ansys.pre_commit_hooks.quality_rules.readme.RM006#
Bases:
READMEREADME has a documentation section.
Requires a heading that contains
documentation. Either a Markdown#heading or an underlined reStructuredText heading is accepted. The word in body text or in a URL does not count.Notes
A missing heading produces an error, including when there is no README file.
Overview#
Return whether the README has a documentation heading. |
Import detail#
from src.ansys.pre_commit_hooks.quality_rules.readme import RM006
Method detail#
- static RM006.check(repository_root: pathlib.Path, readme_file: str | None) ansys.pre_commit_hooks.quality_rules.common.RuleCheckResult#
Return whether the README has a documentation heading.
- Parameters:
- repository_root
pathlib.Path Repository root directory.
- readme_file
strorNone Name of the detected README file, or
Noneif there is none.
- repository_root
- Returns: