diff --git a/dev/test.sh b/dev/test.sh index 6e2301accc62..d3130bf3f6c2 100755 --- a/dev/test.sh +++ b/dev/test.sh @@ -55,3 +55,11 @@ python -m mdformat --check --number doc/source examples echo "- mdformat: done" echo "- All Markdown checks passed" + +echo "- Start license checks" + +echo "- licensecheck: start" +python -m licensecheck -u poetry --fail-licenses gpl --zero +echo "- licensecheck: done" + +echo "- All license checks passed" diff --git a/pyproject.toml b/pyproject.toml index 11910c305f9c..b948c8d8b64d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -119,6 +119,7 @@ twine = "==4.0.2" pyroma = "==4.2" check-wheel-contents = "==0.4.0" GitPython = "==3.1.32" +licensecheck = "==2023.5.1" [tool.isort] line_length = 88