Skip to content

Commit

Permalink
Add non-inverse flag to COMPILE_EXCLUDE_OPTIONS
Browse files Browse the repository at this point in the history
Fixes: jazzband#2065
See: jazzband#1197

Click context only had positive --reuse-hashes to loop over, inverse is
automatically deduced.
  • Loading branch information
mjsir911 committed Mar 5, 2024
1 parent 1197151 commit 29d912a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion piptools/utils.py
Expand Up @@ -51,7 +51,7 @@
"--upgrade-package",
"--verbose",
"--cache-dir",
"--no-reuse-hashes",
"--reuse-hashes",
"--no-config",
}

Expand Down
2 changes: 2 additions & 0 deletions tests/test_utils.py
Expand Up @@ -374,6 +374,8 @@ def test_is_url_requirement_filename(caplog, from_line, line):
(["--upgrade"], "pip-compile"),
(["-P", "django"], "pip-compile"),
(["--upgrade-package", "django"], "pip-compile"),
(["--reuse-hashes"], "pip-compile"),
(["--no-reuse-hashes"], "pip-compile"),
# Check options
(["--max-rounds", "42"], "pip-compile --max-rounds=42"),
(["--index-url", "https://foo"], "pip-compile --index-url=https://foo"),
Expand Down

0 comments on commit 29d912a

Please sign in to comment.