RM004#
- class src.ansys.pre_commit_hooks.quality_rules.readme.RM004#
Bases:
READMEREADME has a GH-CI badge.
Looks for a GitHub Actions workflow badge, a
badge.svgURL undergithub.com/./ /actions/workflows/ Notes
A missing badge produces a warning, including when there is no README file.
Overview#
Return whether the README contains a GitHub Actions badge. |
Import detail#
from src.ansys.pre_commit_hooks.quality_rules.readme import RM004
Method detail#
- static RM004.check(repository_root: pathlib.Path, readme_file: str | None) ansys.pre_commit_hooks.quality_rules.common.RuleCheckResult#
Return whether the README contains a GitHub Actions badge.
- 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: