From 4f8ed03512740073fa23441c7e3a5bf511d016af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Sun, 3 Nov 2024 08:02:05 +0100 Subject: [PATCH] chore: Sync with WeblateOrg/meta --- .github/renovate.json | 13 +++++++++---- .github/workflows/pre-commit.yml | 5 +++-- .pre-commit-config.yaml | 4 ++-- 3 files changed, 14 insertions(+), 8 deletions(-) diff --git a/.github/renovate.json b/.github/renovate.json index e1557c3..dade2cd 100644 --- a/.github/renovate.json +++ b/.github/renovate.json @@ -25,17 +25,17 @@ "git-refs" ], "automerge": false, - "schedule": "on the last day of the month" + "schedule": "on the first day of the month" }, { "matchDatasources": [ "helm" ], "automerge": false, - "schedule": "on the last day of the month" + "schedule": "on the first day of the month" }, { - "matchPaths": [ + "matchFileNames": [ "**/package.json" ], "automerge": false @@ -68,8 +68,9 @@ } } ], - "regexManagers": [ + "customManagers": [ { + "customType": "regex", "fileMatch": [ "\\.pre-commit-config\\.yaml" ], @@ -80,6 +81,7 @@ "versioningTemplate": "pep440" }, { + "customType": "regex", "fileMatch": [ "\\.pre-commit-config\\.yaml" ], @@ -90,6 +92,7 @@ "versioningTemplate": "npm" }, { + "customType": "regex", "fileMatch": [ "^Dockerfile$" ], @@ -101,6 +104,7 @@ "versioningTemplate": "pep440" }, { + "customType": "regex", "fileMatch": [ "(^|/)Chart\\.yaml$" ], @@ -109,6 +113,7 @@ ] }, { + "customType": "regex", "fileMatch": [ "^\\.github/workflows/[^/]+\\.ya?ml$" ], diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index 767c1ec..03fdebb 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -30,12 +30,13 @@ jobs: uses: actions/setup-python@v5 with: python-version: '3.12' - - name: Install uv - run: curl -LsSf https://astral.sh/uv/install.sh | sh + - uses: astral-sh/setup-uv@v3 - name: Install dependencies run: | if [ -f requirements-lint.txt ] ; then uv pip install --system -r requirements-lint.txt + elif grep -q dependency-groups pyproject.toml ; then + uv sync --only-group pre-commit else uv pip install --system $(sed -n 's/.*"\(pre-commit==\([^"]*\)\)".*/\1/p' pyproject.toml) fi diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index fa8fb5f..87aecba 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -46,9 +46,9 @@ repos: hooks: - id: mdformat additional_dependencies: - - mdformat-gfm==0.3.7 + - mdformat-gfm==0.3.6 - mdformat-ruff==0.1.3 - - mdformat-shfmt==0.2.0 + - mdformat-shfmt==0.1.0 - mdformat_tables==1.0.0 ci: autoupdate_schedule: quarterly