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.69k stars 610 forks source link

`pip-compile` and `pip-sync` have different options, but single config section #1932

Closed atugushev closed 1 year ago

atugushev commented 1 year ago

Environment Versions

  1. OS Type: any
  2. Python version: any
  3. pip version: any
  4. pip-tools version: pip-compile, version 7.1.0

Steps to replicate

echo pytz > requirements.in
echo -e "[tool.pip-tools]\ngenerate-hashes = true" > .pip-tools.toml
pip-compile
pip-sync

Expected result

Successful sync.

Actual result

$ pip-compile
#
# This file is autogenerated by pip-compile with Python 3.11
# by the following command:
#
#    pip-compile --generate-hashes
#
pytz==2023.3 \
    --hash=sha256:1d8ce29db189191fb55338ee6d0387d82ab59f3d00eac103412d64e0ebd0c588 \
    --hash=sha256:a151b3abb88eda1d4e34a9814df37de2a80e301e68ba0fd856fb9b46bfbbbffb
    # via -r requirements.in

$ pip-sync
Usage: pip-sync [OPTIONS] [SRC_FILES]...
Try 'pip-sync -h' for help.

Error: No such config key 'generate_hashes'.