Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,9 @@ repos:
language: system
types: [python]
pass_filenames: false
- id: pylic
name: pylic
entry: uv run pylic check --allow-extra-safe-licenses
language: system
types: [python]
pass_filenames: false
24 changes: 23 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[dependency-groups]
dev = [
"deptry"
"deptry",
"pylic"
]

[project]
Expand Down Expand Up @@ -43,6 +44,27 @@ extend_exclude = ["python/"]
DEP001 = ["jinja2"]
DEP003 = ["jinja2"]

[tool.pylic]
safe_licenses = [
"Apache Software License",
"Apache License 2.0",
"Apache-2.0",
"BSD License",
"BSD-2-Clause",
"BSD-3-Clause",
"MIT License",
"MIT",
"Python Software Foundation License",
"PSF-2.0",
"Mozilla Public License 2.0 (MPL 2.0)",
"MPL-2.0",
"ISC License (ISCL)",
"ISC",
"The Unlicense (Unlicense)",
"Unlicense"
]
unsafe_packages = []

[tool.ruff]
fix = true

Expand Down
22 changes: 22 additions & 0 deletions python/pyproject.toml.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ version = "0.1.0"
[dependency-groups]
dev = [
"deptry",
"pylic",
{% if notebook %}
{% if notebook_type == "jupyter" %}
"ipykernel",
Expand All @@ -36,6 +37,27 @@ dev = [
[tool.deptry]
known_first_party = ["src"]

[tool.pylic]
safe_licenses = [
"Apache Software License",
"Apache License 2.0",
"Apache-2.0",
"BSD License",
"BSD-2-Clause",
"BSD-3-Clause",
"MIT License",
"MIT",
"Python Software Foundation License",
"PSF-2.0",
"Mozilla Public License 2.0 (MPL 2.0)",
"MPL-2.0",
"ISC License (ISCL)",
"ISC",
"The Unlicense (Unlicense)",
"Unlicense",
]
unsafe_packages = []

[tool.ruff]
fix = true

Expand Down
128 changes: 126 additions & 2 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading