File tree 3 files changed +1102
-1036
lines changed
3 files changed +1102
-1036
lines changed Original file line number Diff line number Diff line change @@ -40,10 +40,17 @@ jobs:
40
40
# If you added a new dependencies that is being rejected,
41
41
# please make sure it is compatible with the license for this project,
42
42
# 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
43
49
- name : Check Dependencies License
44
50
run : |
45
51
poetry self add poetry-plugin-export
46
52
pip-licenses --allow-only="$ALLOWED_LICENSE" \
53
+ --ignore-packages attrs \
47
54
--package $(poetry export -f requirements.txt --without-hashes | sed "s/==.*//g" | tr "\n" " ")
48
55
49
56
- name : Run pre-commit hooks
You can’t perform that action at this time.
0 commit comments