Skip to content

Error parsing user metadata #70

Closed
Closed
@SimonMolinsky

Description

@SimonMolinsky

Problem

There is a problem with parsing contributors' metadata in package reviews. The problem is probably related to this line of the code:

    def _get_line_meta(self, line_item: list[str]) -> dict[str, object]:
        ...
        if self._contains_keyword(line_item[0]):
            if line_item[0].startswith("All current maintainers"):
                ...
            else:
                names = line_item[1].split("(", 1)  # THIS LINE HERE!
               ...
        return meta

It probably leads to the parsing error here: https://github.com/pyOpenSci/pyopensci.github.io/actions/runs/6521128026/job/17709405005

Reason

I think splitting the line by round bracket ) is why the error occurs. One reviewer's name here: pyOpenSci/software-submission#115 has this character.

Solution

There are two options:

  1. Restrict characters in names (update Editors Guide),
  2. Change the parsing method to detect the @ character.

I can do both, so you can assign me to this issue 🚀

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions