Skip to content

Commit 950f9dc

Browse files
authored
ci: Add a check for open source licenses (#184)
# Summary Uses [licensecheck](https://github.com/FHPythonUtils/LicenseCheck) to make sure that all dependencies are compatible with our own licence. # Changes * Add `licensecheck` to dev dependencies. * Add Step in CI. * Also adds a fallback version in `hatch-vcs`, which should resolve an issue where dependabot fails to run correctly.
1 parent 221ff52 commit 950f9dc

3 files changed

Lines changed: 197 additions & 3 deletions

File tree

.github/workflows/lint-test.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ jobs:
5858
run: find . -name '*.ipynb' -not -path "./.venv/*" -exec uv run nbstripout --verify {} +
5959
if: always()
6060

61+
- name: Check open source licenses
62+
run: uv run licensecheck --requirements-paths ./pyproject.toml --zero --skip-dependencies plugboard-schemas
63+
6164
- name: Build docs
6265
run: uv run mkdocs build --site-dir /tmp/site
6366
if: always()

pyproject.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ dev = [
5959
"ipython>=8.26,<9",
6060
"ipywidgets>=8.1.5,<9",
6161
"jupyterlab>=4.2,<5",
62+
"licensecheck>=2025.1.0",
6263
"mypy>=1.11,<2",
6364
"nbstripout>=0.8,<1",
6465
"pre-commit>=3.8,<4",
@@ -106,6 +107,10 @@ build-backend = "hatchling.build"
106107
[tool.hatch.version]
107108
source = "vcs"
108109

110+
[tool.hatch.version.raw-options]
111+
# Use fallback to all dependabot to run https://github.com/dependabot/dependabot-core/issues/12340
112+
fallback_version = "0.0.0"
113+
109114
[tool.uv]
110115
package = true
111116
default-groups = ["all"]

0 commit comments

Comments
 (0)