RM001#
- class src.ansys.pre_commit_hooks.quality_rules.readme.RM001#
Bases:
READMEREADME has a PyAnsys or Ansys badge.
Looks for a PyAnsys or Ansys badge image, such as an
img.shields.iobadge namedPy-AnsysorAnsys, or any badge image URL that containspyansys. Theansysorganization name in a GitHub URL, for example in a workflow badge, does not count.Notes
A missing badge produces an error, including when there is no README file.
Overview#
Return whether the README contains a PyAnsys or Ansys badge. |
Import detail#
from src.ansys.pre_commit_hooks.quality_rules.readme import RM001
Method detail#
- static RM001.check(repository_root: pathlib.Path, readme_file: str | None) ansys.pre_commit_hooks.quality_rules.common.RuleCheckResult#
Return whether the README contains a PyAnsys or Ansys 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: