Skip to content

Commit 9cc7027

Browse files
authored
fix: Include the venv checksum file in the sources fields for all public linting tasks. (#15)
1 parent e3d296a commit 9cc7027

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

taskfiles/lint-cmake.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,16 @@ tasks:
44
cmake-check:
55
desc: "Runs the CMake linters."
66
sources: &cmake_format_src_files
7+
- "{{.G_LINT_VENV_CHECKSUM_FILE}}"
78
- "{{.ROOT_DIR}}/**/*.cmake"
89
- "{{.ROOT_DIR}}/**/*.cmake.in"
910
- "{{.ROOT_DIR}}/**/CMakeLists.txt"
1011
- "{{.TASKFILE}}"
1112
- exclude: "{{.ROOT_DIR}}/**/build/*"
1213
- exclude: "{{.ROOT_DIR}}/**/submodules/*"
1314
- exclude: "{{.ROOT_DIR}}/**/tools/*"
15+
deps:
16+
- "venv"
1417
cmds:
1518
- task: "gersemi"
1619
vars:
@@ -22,6 +25,8 @@ tasks:
2225
cmake-fix:
2326
desc: "Runs the CMake linters and fixes all violations."
2427
sources: *cmake_format_src_files
28+
deps:
29+
- "venv"
2530
cmds:
2631
- task: "gersemi"
2732
vars:

taskfiles/lint-yaml.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,16 @@ tasks:
77
- "yaml-fix"
88
desc: "Runs the YAML linters. Only checks for warnings and violations."
99
sources:
10+
- "{{.G_LINT_VENV_CHECKSUM_FILE}}"
1011
- "{{.ROOT_DIR}}/**/*.yaml"
1112
- "{{.ROOT_DIR}}/**/*.yml"
1213
- "{{.TASKFILE}}"
1314
- exclude: "{{.ROOT_DIR}}/**/build/*"
1415
- exclude: "{{.ROOT_DIR}}/**/submodules/*"
1516
- exclude: "{{.ROOT_DIR}}/**/tools/*"
17+
dir: "{{.ROOT_DIR}}"
1618
deps:
1719
- "venv"
18-
dir: "{{.ROOT_DIR}}"
1920
cmds:
2021
- |-
2122
. "{{.G_LINT_VENV_DIR}}/bin/activate"

0 commit comments

Comments
 (0)