python/citation-outside-references
| Pack | Severity | Fix | Versions |
|---|---|---|---|
| Python | warning | none, edit by hand | All versions |
Move each author and year citation or et al. in a Python comment or docstring to a numpydoc References section. Give the section a dashed underline of at least three characters. Its scope ends with the docstring. A year alone can stay in the prose.
[tool.xpd.references]citation-paths = ["src"]List files or directories relative to the project file. The default empty list disables this check. Each match points to the citation. Choose the appropriate docstring for a citation in a comment.
Diagnostic message
Section titled “Diagnostic message”Move the citation into the docstring's References section under a dashed underline.See all rules in the Python pack.