Skip to content

Commit f0bda58

Browse files
committed
Use specific linting task "Check Python" workflow
"Umbrella" tasks that run multiple related specific tasks can be convenient for the developer (though not so much in this particular case) by allowing them to avoid typing extra commands.. However, these tasks should not be used in the CI workflows. The reason is that more granular checks make the workflow result easier to understand in the event of a failure.
1 parent 1951b24 commit f0bda58

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

.github/workflows/check-python-task.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,5 +51,5 @@ jobs:
5151
- name: Install Poetry
5252
run: pip install poetry
5353

54-
- name: Lint Python files
55-
run: task python:check
54+
- name: Run flake8
55+
run: task python:lint

Taskfile.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -165,10 +165,6 @@ tasks:
165165
'
166166
fi
167167
168-
python:check:
169-
cmds:
170-
- task: python:lint
171-
172168
python:lint:
173169
desc: Lint Python code
174170
cmds:

0 commit comments

Comments
 (0)