Skip to content

Commit 103c232

Browse files
committed
ci: run licensecheck to auto-audit our dependencies
1 parent 6d5e347 commit 103c232

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

.github/workflows/tests.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,13 @@ jobs:
3838
- name: Make sure pre-commit hooks pass
3939
uses: pre-commit/action@v3.0.1
4040

41-
- name: Minimalist license check
42-
run: |
43-
# Legal check: make sure we don't have or introduce GPL dependencies
44-
if pip-licenses | grep -v 'Artistic License' | grep -v LGPL | grep GNU; then echo 'Please avoid introducing *GPL dependencies'; false; fi
41+
- name: Automated license checking
42+
# Make sure we don't have or introduce dependencies with incompatible licenses.
43+
# Exclusions where auto detection and analysis do not work:
44+
# - pympi-ling is MIT, but not auto-detected. https://github.com/dopefishh/pympi
45+
# - text-unidecode is Artistic License or GPL (at our choice): MIT is
46+
# compatible with the former. https://github.com/kmike/text-unidecode/
47+
run: licensecheck --zero --ignore-packages pympi-ling text-unidecode
4548

4649
- uses: codecov/codecov-action@v4
4750
with:

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ api = [
7373
ci = [
7474
"readalongs[api]",
7575
"coverage",
76-
"pip-licenses",
76+
"licensecheck",
7777
]
7878

7979
all = [

0 commit comments

Comments
 (0)