aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/lint-test.yml7
1 files changed, 7 insertions, 0 deletions
diff --git a/.github/workflows/lint-test.yml b/.github/workflows/lint-test.yml
index 67a2725e9..2254058bd 100644
--- a/.github/workflows/lint-test.yml
+++ b/.github/workflows/lint-test.yml
@@ -40,10 +40,17 @@ 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.
+ # Ref: https://github.com/raimon49/pip-licenses/issues/225
- 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