From e6666f96ee4caccc5b8ceb780e342edc7035aa0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Fri, 12 Jul 2024 09:57:44 +0200 Subject: [PATCH] Sync with WeblateOrg/meta --- .github/renovate.json | 2 +- .github/workflows/pre-commit.yml | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/renovate.json b/.github/renovate.json index 8811ec8..e1557c3 100644 --- a/.github/renovate.json +++ b/.github/renovate.json @@ -94,7 +94,7 @@ "^Dockerfile$" ], "matchStrings": [ - "ENV WEBLATE_VERSION (?.*?)\\n" + "ENV WEBLATE_VERSION=(?.*?)\\n" ], "depNameTemplate": "Weblate", "datasourceTemplate": "pypi", diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index 722e6d5..e29330b 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -24,25 +24,25 @@ jobs: - uses: actions/checkout@v4 - uses: actions/cache@v4 with: - path: | - ~/.cache/pip - ~/.cache/pre-commit - key: ${{ runner.os }}-pre-commit-${{ hashFiles('**/requirements*.txt') }}-${{ hashFiles('.pre-commit-config.yaml') }}-${{ hashFiles('pyproject.toml') }} + path: ~/.cache/pre-commit + key: ${{ runner.os }}-pre-commit-${{ hashFiles('.pre-commit-config.yaml') }} - name: Setup Python uses: actions/setup-python@v5 with: python-version: '3.11' - - name: Update pip - run: python -m pip install --upgrade pip wheel + - name: Install uv + run: curl -LsSf https://astral.sh/uv/install.sh | sh - name: Install dependencies run: | if [ -f requirements-lint.txt ] ; then - pip install -r requirements-lint.txt + uv pip install --system -r requirements-lint.txt else - pip install $(sed -n 's/.*"\(pre-commit==\([^"]*\)\)".*/\1/p' pyproject.toml) + uv pip install --system $(sed -n 's/.*"\(pre-commit==\([^"]*\)\)".*/\1/p' pyproject.toml) fi - name: pre-commit run: pre-commit run --all + env: + RUFF_OUTPUT_FORMAT: github - name: diff run: git diff if: always()