Skip to content

Commit 4b8abfa

Browse files
author
Dominik Falkner
committed
Update file pyproject.toml
1 parent 1759891 commit 4b8abfa

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,17 @@ _check_format = "black --check ."
5555
_check_sort_imports = "isort --check ."
5656
_check_lint = "ruff check ."
5757

58+
# if you are using poetry for dependency management, you have to generate a requirements.txt first
59+
_convert_to_req_txt = { shell = "poetry export --without-hashes --format=requirements.txt > requirements.txt" }
60+
# check authorization of the licenses of dependencies as defined in [tool.liccheck] section
61+
# (or a separate liccheck.ini-file)
62+
_check_licenses = "liccheck -s liccheck.ini -r requirements.txt"
63+
64+
check_licenses = [
65+
"_convert_to_req_txt",
66+
"_check_licenses",
67+
]
68+
5869
docs = "mkdocs serve"
5970
precommit = ["_format", "_sort_imports", "_lint"]
6071
check = ["_check_format", "_check_sort_imports", "_check_lint"]

0 commit comments

Comments
 (0)