diff --git a/.github/workflows/build-dev-binaries.yml b/.github/workflows/build-dev-binaries.yml index 4ba04df7a..66a1d1566 100644 --- a/.github/workflows/build-dev-binaries.yml +++ b/.github/workflows/build-dev-binaries.yml @@ -235,11 +235,11 @@ jobs: - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 with: persist-credentials: false - - uses: SebRollen/toml-action@b1b3628f55fc3a28208d4203ada8b737e9687876 # v1.2.0 + - name: "Read MSRV from Cargo.toml" id: msrv - with: - file: "Cargo.toml" - field: "workspace.package.rust-version" + run: | + MSRV=$(grep -m1 'rust-version' Cargo.toml | sed 's/.*"\([^"]*\)".*/\1/') + echo "value=$MSRV" >> "$GITHUB_OUTPUT" - name: "Install Rust toolchain" run: rustup default ${MSRV} env: diff --git a/.github/workflows/check-lint.yml b/.github/workflows/check-lint.yml index 7b076a31a..f94a468e2 100644 --- a/.github/workflows/check-lint.yml +++ b/.github/workflows/check-lint.yml @@ -56,15 +56,14 @@ jobs: - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 with: persist-credentials: false - - uses: ludeeus/action-shellcheck@00cae500b08a931fb5698e11e79bfbd38e612a38 # 2.0.0 - env: - # renovate: datasource=github-tags depName=koalaman/shellcheck - SHELLCHECK_VERSION: "v0.11.0" - SHELLCHECK_OPTS: --shell bash - with: - version: ${{ env.SHELLCHECK_VERSION }} - severity: style - check_together: "yes" + - name: "Install shellcheck" + run: | + # renovate: datasource=github-releases depName=koalaman/shellcheck + SHELLCHECK_VERSION="v0.11.0" + curl -sSL "https://github.com/koalaman/shellcheck/releases/download/${SHELLCHECK_VERSION}/shellcheck-${SHELLCHECK_VERSION}.linux.x86_64.tar.xz" | tar -xJf - + sudo mv "shellcheck-${SHELLCHECK_VERSION}/shellcheck" /usr/local/bin/ + - name: "Run shellcheck" + run: find . -name '*.sh' -type f | xargs shellcheck --shell bash --severity style validate-pyproject: timeout-minutes: 10 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 24f9ec164..72e9f0bd6 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -35,10 +35,13 @@ repos: pass_filenames: false files: ^crates/(uv-cli|uv-settings)/ - - repo: https://github.com/pre-commit/mirrors-prettier - rev: v3.1.0 + - repo: local hooks: - id: prettier + name: prettier + entry: prettier --write --ignore-unknown + language: node + additional_dependencies: ["prettier@3"] types_or: [yaml, json5] - repo: https://github.com/astral-sh/ruff-pre-commit