RM000#
- class src.ansys.pre_commit_hooks.quality_rules.readme.RM000#
Bases:
READMEREADME file exists.
Requires a
README.rstorREADME.mdfile in the repository root.Notes
README.rstpasses.README.mdis accepted with a warning, becauseREADME.rstis preferred.A missing README produces an error.
Overview#
Return whether the repository has a supported README file. |
Import detail#
from src.ansys.pre_commit_hooks.quality_rules.readme import RM000
Method detail#
- static RM000.check(repository_root: pathlib.Path, readme_file: str | None) ansys.pre_commit_hooks.quality_rules.common.RuleCheckResult#
Return whether the repository has a supported README file.
- 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: