Repository.FindLicense initial implementation
We chose to use the same detector as Gitaly's: go-enry/go-license-detector, so that we get the same results. Of course this means we have to provide it in CI and Omnibus builds. Closes #161
parent
b5c85c71
No related branches found
No related tags found
Showing
- hgext3rd/hgitaly/__init__.py 1 addition, 0 deletionshgext3rd/hgitaly/__init__.py
- hgitaly/license_detector/GPL-2.sample 339 additions, 0 deletionshgitaly/license_detector/GPL-2.sample
- hgitaly/license_detector/__init__.py 137 additions, 0 deletionshgitaly/license_detector/__init__.py
- hgitaly/license_detector/spdx-licenses.json 7514 additions, 0 deletionshgitaly/license_detector/spdx-licenses.json
- hgitaly/service/repository.py 26 additions, 0 deletionshgitaly/service/repository.py
- hgitaly/service/tests/test_repository_service.py 30 additions, 0 deletionshgitaly/service/tests/test_repository_service.py
- hgitaly/tests/test_license_detector.py 42 additions, 0 deletionshgitaly/tests/test_license_detector.py
- install-requirements.txt 1 addition, 0 deletionsinstall-requirements.txt
- tests_with_gitaly/test_repository_service.py 22 additions, 0 deletionstests_with_gitaly/test_repository_service.py
hgitaly/license_detector/GPL-2.sample
0 → 100644
hgitaly/license_detector/__init__.py
0 → 100644
hgitaly/license_detector/spdx-licenses.json
0 → 100644
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
hgitaly/tests/test_license_detector.py
0 → 100644
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Please register or sign in to comment