PC001#

class src.ansys.pre_commit_hooks.quality_rules.pre_commit.PC001#

Bases: PreCommit

The .pre-commit-config.yaml file exists.

Overview#

check

Return whether the pre-commit configuration exists.

Import detail#

from src.ansys.pre_commit_hooks.quality_rules.pre_commit import PC001

Method detail#

static PC001.check(repository_root: pathlib.Path, readme_file: str | None) → ansys.pre_commit_hooks.quality_rules.common.RuleCheckResult#

Return whether the pre-commit configuration exists.