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:
konsti
2024-03-20 01:16:46 +01:00
committed by GitHub
parent ab99a18cbc
commit 79fbac7af5
7 changed files with 31 additions and 22 deletions

View File

@@ -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: