File tree 1 file changed +14
-2
lines changed
1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -122,6 +122,8 @@ tasks:
122
122
desc : Check for commonly misspelled words
123
123
deps :
124
124
- task : poetry:install-deps
125
+ vars :
126
+ POETRY_GROUPS : dev
125
127
cmds :
126
128
- |
127
129
poetry run \
@@ -132,6 +134,8 @@ tasks:
132
134
desc : Correct commonly misspelled words where possible
133
135
deps :
134
136
- task : poetry:install-deps
137
+ vars :
138
+ POETRY_GROUPS : dev
135
139
cmds :
136
140
- |
137
141
poetry run \
@@ -380,11 +384,17 @@ tasks:
380
384
381
385
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/poetry-task/Taskfile.yml
382
386
poetry:install-deps :
383
- desc : Install dependencies managed by Poetry
387
+ desc : |
388
+ Install dependencies managed by Poetry.
389
+ Environment variable parameters:
390
+ POETRY_GROUPS: Poetry dependency groups to install (default: install all dependencies).
384
391
deps :
385
392
- task : poetry:install
386
393
cmds :
387
- - poetry install --no-root
394
+ - |
395
+ poetry install \
396
+ --no-root \
397
+ {{if .POETRY_GROUPS}} --only {{.POETRY_GROUPS}} {{end}}
388
398
389
399
# Make a temporary file named according to the passed TEMPLATE variable and print the path passed to stdout
390
400
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/windows-task/Taskfile.yml
@@ -426,6 +436,8 @@ tasks:
426
436
desc : Check for problems with YAML files
427
437
deps :
428
438
- task : poetry:install-deps
439
+ vars :
440
+ POETRY_GROUPS : dev
429
441
cmds :
430
442
- |
431
443
poetry run \
You can’t perform that action at this time.
0 commit comments