aboutcode-org / aboutcode-org/scancode-toolkit

add huggingface id to .LICENSE yaml frontmatter

Open
#4,954 17 comments 0 reactions 0 assignees View on GitHub
new feature
Dominant language
Python
Stars
2.6k
Forks
791
Avg merge
1d 12h
Merged PRs (30d)
5

Description

## Short Description

Huggingface uses different descriptions than in SPDX or other places. Adding a huggingface id to the .LICENSE yaml frontmatter might make referencing things easier.

## Possible Labels

- new feature

## Select Category

- [X] Enhancement
- [ ] Add License/Copyright
- [ ] Scan Feature
- [ ] Packaging
- [ ] Documentation
- [ ] Expand Support
- [ ] Other

## **Describe the Update**

Inspired by #4900 : huggingface calls this "apple-sample-code-license" (as seen when browsing the HuggingFace website for the project linked in #4900 ). This isn't the same name as used in SPDX or the ScanCode licensedb.

Just as there already is `spdx_license_key` it might make sense to add something like `huggingface_license_key`.

## **How This Feature will help you/your organization**

I think that the onslaught of licenses coming from huggingface in the near future will make this a useful feature.

## **Possible Solution/Implementation Details**

A good first start would be to add data from this list:

https://huggingface.co/docs/hub/repositories-licenses

## **Example/Links if Any**

## **Can you help with this Feature**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.