Skip to content

Fixed P019 counting organisations as authors - #118

Merged
Anas-Elhounsri merged 1 commit into
mainfrom
0.3.8-release
Nov 12, 2026
Merged

Anas-Elhounsri merged 1 commit into
mainfrom
0.3.8-release

Conversation

@Anas-Elhounsri

Copy link
Copy Markdown
Collaborator

SoMEF emits every codemeta author as type "Agent", so an organisation listed in codemeta.json's author array was counted as a person and reported as an author count mismatch against the package manifest (codemeta.json 2 vs pyproject.toml 1 when the extra entry was the owner organisation).

  • _declared_organization() drops entries that declare themselves an organisation (type / @type / agent_type, including union lists).
  • _codemeta_persons() re-reads the repository's root codemeta.json and keeps only people. It returns None when the file cannot be read, so the detector falls back to the SoMEF view instead of guessing.
  • A source left with no people is omitted rather than counted as 0, which would otherwise create a new 0-vs-N false positive.

@Anas-Elhounsri
Anas-Elhounsri merged commit fd95737 into main Nov 12, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant