Commit c6c8b2c
fix(ci): run ruff in autofix mode (#25)
* fix(ci): run ruff in autofix mode
Runs `ruff check --fix` and `ruff format` to apply auto-fixable lint and
format corrections, then fails via `git diff --exit-code` if the working
tree is dirty — meaning the developer forgot to run ruff locally before
pushing. This gives a clear error message pointing them to the fix.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* style: apply ruff format to client.py
Pre-commit hooks caught one file needing reformatting.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix: merge implicit string concatenation for ruff compliance
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* test: rewrite tests for new public-api client
- Remove obsolete tests for oc CLI-based client
- Remove test_security.py (tested methods no longer exist)
- Add test_formatters.py for output formatting
- Update test_client.py for HTTP-based client
- Update test_server.py for current 7 tools
All 40 tests pass with 70% coverage.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-authored-by: Ambient Code <ambient-code@redhat.com>1 parent 3689fd1 commit c6c8b2c
File tree
6 files changed
+459
-914
lines changed- .github/workflows
- src/mcp_acp
- tests
6 files changed
+459
-914
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
52 | 52 | | |
53 | | - | |
54 | | - | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
55 | 56 | | |
56 | 57 | | |
57 | 58 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | | - | |
83 | | - | |
| 82 | + | |
84 | 83 | | |
85 | 84 | | |
86 | 85 | | |
| |||
162 | 161 | | |
163 | 162 | | |
164 | 163 | | |
165 | | - | |
166 | | - | |
167 | | - | |
| 164 | + | |
168 | 165 | | |
169 | 166 | | |
170 | 167 | | |
| |||
311 | 308 | | |
312 | 309 | | |
313 | 310 | | |
314 | | - | |
315 | | - | |
316 | | - | |
| 311 | + | |
317 | 312 | | |
318 | 313 | | |
319 | 314 | | |
| |||
332 | 327 | | |
333 | 328 | | |
334 | 329 | | |
335 | | - | |
336 | | - | |
337 | | - | |
338 | | - | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
339 | 336 | | |
340 | | - | |
341 | | - | |
342 | | - | |
343 | | - | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
344 | 343 | | |
345 | 344 | | |
346 | 345 | | |
| |||
360 | 359 | | |
361 | 360 | | |
362 | 361 | | |
363 | | - | |
364 | | - | |
365 | | - | |
366 | | - | |
367 | | - | |
368 | | - | |
369 | | - | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
370 | 371 | | |
371 | 372 | | |
372 | 373 | | |
| |||
0 commit comments