Skip to content

Commit d8d8680

Browse files
author
Dominik Falkner
committed
Revert "feat(liccheck): Update to use pyproject.toml"
This reverts commit e9b838c
1 parent e9b838c commit d8d8680

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

‎{{ cookiecutter.__package_name_kebab_case }}/pyproject.toml‎

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,16 @@ _check_format = "black --check ."
5656
_check_sort_imports = "isort --check ."
5757
_check_lint = "ruff check ."
5858

59-
check_licenses = "liccheck -s pyproject.toml"
59+
# if you are using poetry for dependency management, you have to generate a requirements.txt first
60+
_convert_to_req_txt = { shell = "poetry export --without-hashes --format=requirements.txt > requirements.txt" }
61+
# check authorization of the licenses of dependencies as defined in [tool.liccheck] section
62+
# (or a separate liccheck.ini-file)
63+
_check_licenses = "liccheck -s liccheck.ini -r requirements.txt"
64+
65+
check_licenses = [
66+
"_convert_to_req_txt",
67+
"_check_licenses",
68+
]
6069

6170
docs = "mkdocs serve"
6271
precommit = ["_format", "_sort_imports", "_lint"]

0 commit comments

Comments
 (0)