Add rust_lint CI job (cargo fmt + clippy)

This commit is contained in:
Ishaan Jaffer 2026-06-16 20:47:27 -07:00
parent aff00be4aa
commit 1320fcf581
No known key found for this signature in database

View file

@ -1019,6 +1019,27 @@ jobs:
paths:
- ocr_coverage.xml
- ocr_coverage
rust_lint:
docker:
- image: cimg/rust:1.81.0@sha256:481ed74dedc5adf6f818141e902a8c20084e127c5f3e9f5dc06bee5646bd4624
working_directory: ~/project
steps:
- checkout
- run:
name: Rust format check
command: |
cd litellm-rust
cargo fmt --check
- run:
name: Clippy (pure crate + standalone server)
command: |
cd litellm-rust
cargo clippy --all-targets -- -D warnings
- run:
name: Clippy (PyO3 extension)
command: |
cd litellm-rust
PYO3_PYTHON=$(which python3) cargo clippy --lib --features python -- -D warnings
search_testing:
docker:
- *python312_image
@ -2961,6 +2982,8 @@ workflows:
filters: *main_branches
- ocr_testing:
filters: *main_branches
- rust_lint:
filters: *main_branches
- search_testing:
filters: *main_branches
- litellm_mapped_enterprise_tests: