@@ -43,9 +43,10 @@ tasks:
43
43
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/test-go-integration-task/Taskfile.yml
44
44
go:test-integration :
45
45
desc : Run integration tests
46
- cmds :
46
+ deps :
47
47
- task : go:build
48
- - poetry install --no-root
48
+ - task : poetry:install-deps
49
+ cmds :
49
50
- poetry run pytest test
50
51
51
52
go:check :
@@ -88,18 +89,26 @@ tasks:
88
89
cmds :
89
90
- go fmt {{default .DEFAULT_GO_PACKAGES .GO_PACKAGES}}
90
91
92
+ # Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/poetry-task/Taskfile.yml
93
+ poetry:install-deps :
94
+ desc : Install dependencies managed by Poetry
95
+ cmds :
96
+ - poetry install --no-root
97
+
91
98
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/check-python-task/Taskfile.yml
92
99
python:lint :
93
100
desc : Lint Python code
101
+ deps :
102
+ - task : poetry:install-deps
94
103
cmds :
95
- - poetry install --no-root
96
104
- poetry run flake8 --show-source
97
105
98
106
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/check-python-task/Taskfile.yml
99
107
python:format :
100
108
desc : Format Python files
109
+ deps :
110
+ - task : poetry:install-deps
101
111
cmds :
102
- - poetry install --no-root
103
112
- poetry run black .
104
113
105
114
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/check-prettier-formatting-task/Taskfile.yml
@@ -111,13 +120,15 @@ tasks:
111
120
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/spell-check-task/Taskfile.yml
112
121
general:check-spelling :
113
122
desc : Check for commonly misspelled words
123
+ deps :
124
+ - task : poetry:install-deps
114
125
cmds :
115
- - poetry install --no-root
116
126
- poetry run codespell
117
127
118
128
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/spell-check-task/Taskfile.yml
119
129
general:correct-spelling :
120
130
desc : Correct commonly misspelled words where possible
131
+ deps :
132
+ - task : poetry:install-deps
121
133
cmds :
122
- - poetry install --no-root
123
134
- poetry run codespell --write-changes
0 commit comments