checks.changelog.ChangelogCheck

checks.changelog.ChangelogCheck()

Check for changelog or news file.

Searches the project root, docs/ and doc/ for common changelog names, then for a directory of news fragments, then for a changelog link in the project URLs. A file in the root must have meaningful content.

Attributes

name :

The check identifier (“changelog”).

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 changelog file presence and content.

run

checks.changelog.ChangelogCheck.run(package_path, config)

Check for changelog file presence and content.

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 a changelog with content is found
: CheckResult
  • NOTE status if the changelog is too short or none is found
: CheckResult
  • WARNING status if a changelog file cannot be read and no other changelog is found, also when a short file sits beside it