python-license-check icon indicating copy to clipboard operation
python-license-check copied to clipboard

strategy_ini_file in [tool.liccheck] does not load liccheck.ini as described in README

Open shagn opened this issue 3 months ago • 0 comments

The README suggests that liccheck supports combining pyproject.toml with a liccheck.ini file, for example:

[tool.liccheck]
strategy_ini_file = "./liccheck.ini"
dependencies = true

However, this configuration does not work. If [tool.liccheck] exists, liccheck always uses Strategy.from_pyproject_toml() and ignores the .ini file, even when strategy_ini_file is defined.

I would like to see an option in which this would work. In repos with multiple environments the licenses can be defined in one central file.

Otherwise a hint in the README to clarify that defining [tool.liccheck] disables .ini loading would be helpful.

shagn avatar Oct 29 '25 14:10 shagn