Skip to content

Commit 5f29157

Browse files
committed
Add task to upgrade a specific package in requirements files
How to use it, env PACKAGE=isort task upgrade:package
1 parent 5c0293f commit 5f29157

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Taskfile.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,11 @@ tasks:
126126
desc: Format the code
127127
cmds:
128128
- toast code:format
129+
upgrade:package:
130+
cmds:
131+
- python -m uv pip compile --upgrade-package $PACKAGE --output-file requirements/main.txt requirements/main.in
132+
- python -m uv pip compile --upgrade-package $PACKAGE --output-file requirements/dev.txt requirements/dev.in
133+
- python -m uv pip compile --upgrade-package $PACKAGE --output-file requirements/production.txt requirements/production.in
129134

130135
tests:
131136
env:

0 commit comments

Comments
 (0)