File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -40,10 +40,17 @@ jobs:
4040 # If you added a new dependencies that is being rejected,
4141 # please make sure it is compatible with the license for this project,
4242 # and add it to the ALLOWED_LICENSE variable
43+
44+ # NOTE: at time of writing pip-licenses is not PEP-639 compliant
45+ # so is not detecting the license for packages now following that style.
46+ # As a temp fix, add packages to the ignore list after manually checking
47+ # that the license in use is compatible with ours.
48+ # Ref: https://github.com/raimon49/pip-licenses/issues/225
4349 - name : Check Dependencies License
4450 run : |
4551 poetry self add poetry-plugin-export
4652 pip-licenses --allow-only="$ALLOWED_LICENSE" \
53+ --ignore-packages attrs \
4754 --package $(poetry export -f requirements.txt --without-hashes | sed "s/==.*//g" | tr "\n" " ")
4855
4956 - name : Run pre-commit hooks
You can’t perform that action at this time.
0 commit comments