mirror of
https://github.com/astral-sh/uv
synced 2026-01-21 13:30:11 -05:00
Fast lint CI job: Rustfmt, Prettier, Ruff (#2406)
Add a single job for for fast lint tools. Rustfmt for rust, ruff for python formatting and linting, prettier avoids inconsistent formatter changes between pycharm and vscode.
This commit is contained in:
13
.github/workflows/ci.yml
vendored
13
.github/workflows/ci.yml
vendored
@@ -23,11 +23,22 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: "Install Rust toolchain"
|
||||
|
||||
- name: "Install Rustfmt"
|
||||
run: rustup component add rustfmt
|
||||
|
||||
- name: "rustfmt"
|
||||
run: cargo fmt --all --check
|
||||
|
||||
- name: "Prettier"
|
||||
run: npx prettier --check "**/*.{yaml,yml}"
|
||||
|
||||
- name: "Ruff format"
|
||||
run: pipx run ruff format --diff .
|
||||
|
||||
- name: "Ruff check"
|
||||
run: pipx run ruff check .
|
||||
|
||||
cargo-clippy:
|
||||
name: "cargo clippy"
|
||||
strategy:
|
||||
|
||||
Reference in New Issue
Block a user