Skip to content

Commit

Permalink
chore(license): black fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
cmdoret committed Nov 13, 2023
1 parent 907f6d9 commit 35ad2d9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions gimie/parsers/license/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,7 @@ def parse(self, data: bytes) -> Set[Property]:
return props


def match_license(
data: bytes, min_similarity: float = 0.9
) -> Optional[str]:
def match_license(data: bytes, min_similarity: float = 0.9) -> Optional[str]:
"""Given a license file, returns the url of the most similar spdx license.
This is done using TF-IDF on the license text and getting the
closest match in the SPDX license corpus based on cosine similarity.
Expand Down

0 comments on commit 35ad2d9

Please sign in to comment.