checks.community.CommunityCheck

checks.community.CommunityCheck()

Check for community health files.

Looks for a contributing guide and a code of conduct in the project root, .github/, docs/ and doc/. Default files that an organization keeps in its own .github repository are not part of a clone, so this check cannot see them.

Attributes

name :

The check identifier (“community”).

description :

Human-readable description of this check.

rules :

The codes this check can report.

hints :

What to do about each code.

Methods

Name Description
run Check for community health files.

run

checks.community.CommunityCheck.run(package_path, config)

Check for community health files.

Parameters

package_path : Path

Path to the package directory to check.

config : dict[str, Any]

Configuration dictionary for this check.

Returns

: CheckResult

A CheckResult with:

: CheckResult
  • OK status if both files are present
: CheckResult
  • NOTE status if one or both files are not in the repository