From: Aarni Koskela Date: Tue, 9 Sep 2025 16:36:12 +0000 (+0300) Subject: Renovate CI & lint tools (#1228) X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=24f148ccb478098b81de08c71ec203051780ea6c;p=thirdparty%2Fbabel.git Renovate CI & lint tools (#1228) * CI: use pre-commit-uv for lint * CI: renovate action versions * CI: disable Pip version check (No need to spend time on that, really) * Upgrade pre-commit repos --- diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7392ea40..2b31c90f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,8 +18,17 @@ jobs: contents: read runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - uses: pre-commit/action@v3.0.1 + - uses: actions/checkout@v5 + - uses: astral-sh/setup-uv@v6 + with: + cache-dependency-glob: ".github/workflows/*.yml" + cache-suffix: pre-commit-uv + - run: uv tool install pre-commit --with pre-commit-uv --force-reinstall + - uses: actions/cache@v4 + with: + path: ~/.cache/pre-commit + key: pre-commit-uv-v1-${{ hashFiles('.pre-commit-config.yaml') }} + - run: pre-commit run --all-files --show-diff-on-failure --color=always env: RUFF_OUTPUT_FORMAT: github test: @@ -43,14 +52,15 @@ jobs: env: BABEL_CLDR_NO_DOWNLOAD_PROGRESS: "1" BABEL_CLDR_QUIET: "1" + PIP_DISABLE_PIP_VERSION_CHECK: "1" steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v5 - uses: actions/cache@v4 with: path: cldr key: cldr-${{ hashFiles('scripts/*cldr*') }} - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v5 + uses: actions/setup-python@v6 with: python-version: ${{ matrix.python-version }} allow-prereleases: true @@ -77,8 +87,8 @@ jobs: runs-on: ubuntu-24.04 needs: lint steps: - - uses: actions/checkout@v4 - - uses: actions/setup-python@v5 + - uses: actions/checkout@v5 + - uses: actions/setup-python@v6 with: python-version: "3.13" cache: "pip" @@ -101,7 +111,7 @@ jobs: permissions: id-token: write steps: - - uses: actions/download-artifact@v4 + - uses: actions/download-artifact@v5 with: name: dist path: dist/ diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6a86ee87..3c445713 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,12 +1,12 @@ repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.9.1 + rev: v0.12.12 hooks: - - id: ruff + - id: ruff-check args: - --fix - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v5.0.0 + rev: v6.0.0 hooks: - id: check-added-large-files - id: check-docstring-first