Skip to content

fix(ci): run ruff in autofix mode#25

Merged
jeremyeder merged 4 commits intomainfrom
bugfix/ruff-autofix-ci
Feb 12, 2026
Merged

fix(ci): run ruff in autofix mode#25
jeremyeder merged 4 commits intomainfrom
bugfix/ruff-autofix-ci

Conversation

@jeremyeder
Copy link
Contributor

Summary

Switches the ruff CI step from check-only to autofix mode. Instead of just reporting lint/format violations, the workflow now applies fixes and then verifies the tree is clean via git diff --exit-code. If ruff made changes, CI fails with a clear message: "ruff made changes — commit them locally before pushing."

Before:

ruff check .            # report-only
ruff format --check .   # report-only

After:

ruff check --fix .      # apply auto-fixable lint fixes
ruff format .           # apply formatting
git diff --exit-code    # fail if anything changed

This catches the same issues but gives developers an actionable error message instead of a wall of lint output.

Test plan

  • Push code with lint violations — CI fails with "ruff made changes" message
  • Push clean code — CI passes

🤖 Generated with Claude Code

jeremyeder and others added 4 commits February 11, 2026 15:51
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>
Pre-commit hooks caught one file needing reformatting.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- 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>
@jeremyeder jeremyeder merged commit c6c8b2c into main Feb 12, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant