Skip to content

Commit 00a48f7

Browse files
authored
Merge pull request #2763 from zacchiro/feature/get_licenses-docstring
api.get_licenses: clarify and improve docstring for "min_score" argument
2 parents dcea419 + 519b291 commit 00a48f7

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

AUTHORS.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,3 +93,4 @@ The following organizations or individuals have contributed to ScanCode:
9393
- Yash Nisar @yash-nisar
9494
- Yash Sharma @yasharmaster
9595
- Yunus Rahbar @yns88
96+
- Stefano Zacchiroli @zacchiro

src/scancode/api.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,9 +154,9 @@ def get_licenses(location, min_score=0,
154154
- 'license_expressions' with a value that is list of license expression
155155
strings.
156156
157-
`minimum_score` is a minimum score threshold from 0 to 100. The default is 0
158-
means that all license matches are returned. Otherwise, matches with a score
159-
below `minimum_score` are returned.
157+
`min_score` is a minimum score threshold from 0 to 100. The default is 0,
158+
meaning that all license matches are returned. If specified, matches with a
159+
score lower than `minimum_score` are not returned.
160160
161161
If `include_text` is True, matched text is included in the returned
162162
`licenses` data as well as a file-level `percentage_of_license_text` percentage to

0 commit comments

Comments
 (0)