RM007#
- class src.ansys.pre_commit_hooks.quality_rules.readme.RM007#
Bases:
READMEREADME has a license section.
Requires a heading that contains
licenseorlicence. Either a Markdown#heading or an underlined reStructuredText heading is accepted. The word in body text, or in a badge 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 license heading. |
Import detail#
from src.ansys.pre_commit_hooks.quality_rules.readme import RM007
Method detail#
- static RM007.check(repository_root: pathlib.Path, readme_file: str | None) ansys.pre_commit_hooks.quality_rules.common.RuleCheckResult#
Return whether the README has a license 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: