PC003#

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

Bases: PreCommit

Zizmor is configured with –pedantic or –persona=pedantic.

Overview#

check

Recommend a zizmor hook with pedantic mode.

Import detail#

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

Method detail#

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

Recommend a zizmor hook with pedantic mode.

Returns:
bool or str

True when a zizmor hook sets --pedantic or --persona=pedantic, otherwise a recommendation to add the hook or enable pedantic mode.