With pip-tools version 7.1.0 I'm getting an error message (see "Actual result") when running pip-sync with the following configuration in pyproject.toml:
[tool.pip-tools]
emit-index-url = false
Maybe I missed how to specify options for a specific CLI command, but I couldn't find any related info in the docs.
Environment Versions
OS Type: Win 10
Python version: 3.9.12
pip version: 23.2.1
pip-tools version: 7.1.0
Steps to replicate
Add a CLI option to config (e.g., in pyproject.toml) that is only used by one CLI command (e.g., --no-emit-index-url for pip-compile)
Run a CLI command which does not use said option (e..g, pip-sync)
Expected result
Validation error is only raised for options that are relevant to the respective CLI command.
Actual result
❯ pip-sync -h
Usage: pip-sync [OPTIONS] [SRC_FILES]...
Try 'pip-sync -h' for help.
Error: No such config key 'emit_index_url'. (Possible options: extra_index_url, index_url)
With pip-tools version 7.1.0 I'm getting an error message (see "Actual result") when running
pip-sync
with the following configuration inpyproject.toml
:Maybe I missed how to specify options for a specific CLI command, but I couldn't find any related info in the docs.
Environment Versions
Steps to replicate
pyproject.toml
) that is only used by one CLI command (e.g.,--no-emit-index-url
forpip-compile
)pip-sync
)Expected result
Validation error is only raised for options that are relevant to the respective CLI command.
Actual result