jazzband / pip-tools

A set of tools to keep your pinned Python dependencies fresh.
https://pip-tools.rtfd.io
BSD 3-Clause "New" or "Revised" License
7.67k stars 608 forks source link

quiet option cannot be added to pyproject.toml #2036

Closed anisse closed 8 months ago

anisse commented 8 months ago

I tried to add the quiet = true option to [tool.pip-tools] in pyproject.toml, but pip-compile was still as verbose

It's obvious why when one looks at the code: https://github.com/jazzband/pip-tools/blob/e02d186efc74bd2509b4a0f038b0184bdc106e42/piptools/utils.py#L46-L55

But this behaviour contradicts the documentation: https://pip-tools.readthedocs.io/en/latest/#configuration

pip-tools supports default values for all valid command-line flags of its subcommands

I filled this as a bug, but just a documentation update could be sufficient.

Environment Versions

  1. OS Type: Linux
  2. Python version: python 3.10.2
  3. pip version: 23.3.1
  4. pip-tools version: 7.3.0

Steps to replicate

  1. add quiet to the pyproject.toml appropriate section
  2. run pip-compile

Expected result

pip-compile runs quietly.

Actual result

pip-compile runs verbosely.

anisse commented 8 months ago

Ok, I did more tests and this is obviously wrong. My pyproject.toml had:

[tool.pip-tools]
verbose = true
[...]
quiet = true

So obviously it didn't work.