Commit efc6a7d
ci: add ruff format enforcement to CI and pre-commit hooks (#197)
* fix: formatting
* ci(lint): add ruff format checks to CI and pre-commit hooks
Add ruff formatting enforcement at multiple levels:
- Tekton CI pipelines: ruff-format-check task for all 6 pipelines
- Pre-commit hooks: auto-format on commit via .pre-commit-config.yaml
- Dev setup: auto-install hooks in init.sh
Uses UBI9 minimal image for faster CI execution.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
* fix: remove merge conflict markers and add missing BOT_SPRINT_PREFIX env var
* fix: use trusted task-script bundle instead of inline taskSpec for ruff checks
Konflux Enterprise Contract requires all tasks to use trusted
bundle references. Replaced inline taskSpec with taskRef pointing
to quay.io/konflux-ci/tekton-catalog/task-script:0.1.
This resolves the trusted_task.trusted violation while maintaining
the same ruff format checking functionality.
* fix: use custom Task resource instead of bundle for ruff format checks
Konflux doesn't provide a generic task-script bundle. Instead, create
a custom Task resource (ruff-format-check-task.yaml) that can be
referenced by name in all pipelines.
This resolves the bundle authentication error while maintaining
ruff format enforcement in CI that cannot be bypassed.
* fix: use git resolver for ruff-format-check task instead of namespace task
Use Tekton git resolver to fetch the task definition from the same
repository and revision being built. This keeps the task definition
version-controlled with the code and doesn't require deploying a
separate Task resource to the namespace.
The task is resolved from .tekton/ruff-format-check-task.yaml at
the same revision as the code being tested.
* refactor: switch ruff format check from Tekton to GitHub Actions
Replace Tekton-based ruff format checks with simpler GitHub Actions workflow.
- Remove custom Tekton task and git resolver references from all 6 pipelines
- Add .github/workflows/ruff-format.yml for CI formatting checks
- Keep pre-commit hooks for local enforcement
Tekton approach hit Enterprise Contract policy restrictions.
GitHub Actions provides simpler, more maintainable solution.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
* chore: trigger proxy pipeline rebuild
* chore: touch proxy config to force pipeline rebuild
Proxy artifact from commit 2392590 still has untrusted ruff task.
Force rebuild with updated pipeline (task removed).
* temp: disable proxy path filtering to force rebuild
Remove path filtering from proxy pipeline CEL expression.
This will trigger proxy rebuild with clean pipeline (no ruff task).
Will re-enable path filtering after artifact is clean.
* chore: re-enable proxy path filtering
Restore original CEL expression now that proxy artifact is clean.
Proxy will only rebuild when proxy/, Dockerfile, or pipeline YAML changes.
---------
Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent 19b1f8b commit efc6a7d
33 files changed
Lines changed: 2607 additions & 1720 deletions
File tree
- .claude/skills
- gh-release-upload
- new-work
- post-pr
- scripts
- tests
- triage
- wrap-up
- .github/workflows
- bot
- memory-server
- src
- tools
- tests
- proxy
- scripts
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
22 | 24 | | |
23 | | - | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
24 | 33 | | |
25 | 34 | | |
26 | 35 | | |
27 | 36 | | |
28 | 37 | | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
34 | 46 | | |
35 | 47 | | |
36 | 48 | | |
37 | 49 | | |
38 | 50 | | |
39 | 51 | | |
40 | 52 | | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
41 | 124 | | |
42 | 125 | | |
43 | 126 | | |
| |||
59 | 142 | | |
60 | 143 | | |
61 | 144 | | |
62 | | - | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
63 | 148 | | |
64 | 149 | | |
65 | 150 | | |
| |||
107 | 192 | | |
108 | 193 | | |
109 | 194 | | |
110 | | - | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
111 | 198 | | |
112 | 199 | | |
113 | 200 | | |
| |||
124 | 211 | | |
125 | 212 | | |
126 | 213 | | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
139 | 228 | | |
140 | 229 | | |
141 | 230 | | |
| |||
145 | 234 | | |
146 | 235 | | |
147 | 236 | | |
148 | | - | |
| 237 | + | |
149 | 238 | | |
150 | | - | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
151 | 242 | | |
152 | 243 | | |
153 | | - | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
154 | 249 | | |
155 | 250 | | |
156 | 251 | | |
157 | 252 | | |
158 | 253 | | |
159 | 254 | | |
160 | 255 | | |
161 | | - | |
| 256 | + | |
162 | 257 | | |
163 | 258 | | |
164 | 259 | | |
| |||
180 | 275 | | |
181 | 276 | | |
182 | 277 | | |
183 | | - | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
184 | 281 | | |
185 | 282 | | |
186 | 283 | | |
| |||
193 | 290 | | |
194 | 291 | | |
195 | 292 | | |
196 | | - | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
197 | 296 | | |
198 | 297 | | |
199 | 298 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | 20 | | |
22 | 21 | | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
| 22 | + | |
28 | 23 | | |
29 | 24 | | |
30 | 25 | | |
| |||
163 | 158 | | |
164 | 159 | | |
165 | 160 | | |
166 | | - | |
| 161 | + | |
167 | 162 | | |
168 | 163 | | |
169 | 164 | | |
| |||
193 | 188 | | |
194 | 189 | | |
195 | 190 | | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
200 | 198 | | |
201 | | - | |
202 | 199 | | |
203 | 200 | | |
204 | 201 | | |
| |||
0 commit comments