checks.citation.CitationCheck

checks.citation.CitationCheck()

Check for citation file.

Searches the project root for CITATION.cff, CITATION.bib, or similar files that enable proper academic citation of the package. Without one, it accepts .zenodo.json, codemeta.json, a paper.md with a paper.bib (in the root, paper/ or joss/), or a README that links a DOI.

Attributes

name :

The check identifier (“citation”).

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 citation file presence.

run

checks.citation.CitationCheck.run(package_path, config)

Check for citation file presence.

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 citation file or other citation metadata is found
: CheckResult
  • NOTE status if neither is found