Skip to content

Commit

Permalink
Resolve some sonnar lint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
odarbelaeze committed Apr 16, 2024
1 parent 525010b commit 2e857a5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/bibx/_entities/collection_builders/wos.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def parse(self, value: List[str]):

class WosCollectionBuilder(CollectionBuilder):
ISI_LINE_PATTERN = re.compile(
r"^(null|.)?((?P<field>[A-Z0-9]{2})| )( (?P<value>.*))?$"
r"^(null|.)?((?P<field>[A-Z0-9]{2})| {2})( (?P<value>.*))?$"
)
ISI_CITATION_PATTERN = re.compile(
r"""^(?P<AU>[^,]+),[ ] # First author
Expand Down
4 changes: 2 additions & 2 deletions src/bibx/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ def describe(format: Format, filename: str):
print(f"There are {len(c.articles)} records parsed")
if format == Format.RIS:
c = read_scopus_ris(open(filename))
print(":boom: the file satisfies the ISI WOS format")
print(":boom: the file satisfies the Scopus RIS format")
print(f"There are {len(c.articles)} records parsed")
if format == Format.BIB:
c = read_scopus_bib(open(filename))
print(":boom: the file satisfies the ISI WOS format")
print(":boom: the file satisfies the Scopus BIB format")
print(f"There are {len(c.articles)} records parsed")


Expand Down

0 comments on commit 2e857a5

Please sign in to comment.