Skip to content

Commit

Permalink
Add --strip-extras to pip-compile
Browse files Browse the repository at this point in the history
It's warning that this will become the default soon, and passing it
silences the warning. It doesn't actually have an effect.
  • Loading branch information
bmerry committed Oct 31, 2024
1 parent c211040 commit e3b3031
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,16 +53,16 @@ repos:
hooks:
- name: pip-compile (py 3.12)
id: pip-compile
args: [requirements.in, -o, requirements-3.12.txt]
args: [--strip-extras, requirements.in, -o, requirements-3.12.txt]
language_version: python3.12
files: '^(?:requirements\.in|requirements-3\.12\.txt)$'
- name: pip-compile (py 3.13)
id: pip-compile
args: [requirements.in, -o, requirements-3.13.txt]
args: [--strip-extras, requirements.in, -o, requirements-3.13.txt]
language_version: python3.13
files: '^(?:requirements\.in|requirements-3\.13\.txt)$'
- name: pip-compile (readthedocs)
id: pip-compile
args: [requirements-readthedocs.in, -o, requirements-readthedocs.txt]
args: [--strip-extras, requirements-readthedocs.in, -o, requirements-readthedocs.txt]
language_version: python3.12
files: '^requirements(?:-readthedocs|3\.12)?\.(?:in|txt)$'
2 changes: 1 addition & 1 deletion requirements-3.12.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# This file is autogenerated by pip-compile with Python 3.12
# by the following command:
#
# pip-compile --output-file=requirements-3.12.txt requirements.in
# pip-compile --output-file=requirements-3.12.txt --strip-extras requirements.in
#
iniconfig==2.0.0
# via pytest
Expand Down
2 changes: 1 addition & 1 deletion requirements-3.13.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# This file is autogenerated by pip-compile with Python 3.13
# by the following command:
#
# pip-compile --output-file=requirements-3.13.txt requirements.in
# pip-compile --output-file=requirements-3.13.txt --strip-extras requirements.in
#
iniconfig==2.0.0
# via pytest
Expand Down
2 changes: 1 addition & 1 deletion requirements-readthedocs.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# This file is autogenerated by pip-compile with Python 3.12
# by the following command:
#
# pip-compile --output-file=requirements-readthedocs.txt requirements-readthedocs.in
# pip-compile --output-file=requirements-readthedocs.txt --strip-extras requirements-readthedocs.in
#
alabaster==0.7.16
# via sphinx
Expand Down

0 comments on commit e3b3031

Please sign in to comment.