Skip to content

Commit

Permalink
Add attrs to ignore list of pip-licenses
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisLovering committed Feb 16, 2025
1 parent 1219b0d commit d9c518a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/lint-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,15 @@ jobs:
# If you added a new dependencies that is being rejected,
# please make sure it is compatible with the license for this project,
# and add it to the ALLOWED_LICENSE variable
# NOTE: at time of writing pip-licenses is not PEP-639 compliant
# so is not detecting the license for packages now following that style.
# As a temp fix, add packages to the ignore list after manually checking
# that the license in use is compatible with ours.
- name: Check Dependencies License
run: |
poetry self add poetry-plugin-export
pip-licenses --allow-only="$ALLOWED_LICENSE" \
--ignore-packages attrs \
--package $(poetry export -f requirements.txt --without-hashes | sed "s/==.*//g" | tr "\n" " ")
- name: Run pre-commit hooks
Expand Down

0 comments on commit d9c518a

Please sign in to comment.