Skip to content

Commit

Permalink
chore: Sync with WeblateOrg/meta
Browse files Browse the repository at this point in the history
  • Loading branch information
nijel committed Feb 13, 2025
1 parent 146c662 commit 6e6276e
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 7 deletions.
11 changes: 11 additions & 0 deletions .github/renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,17 @@
"matchStrings": [
"renovate: datasource=(?<datasource>.*?) depName=(?<depName>.*?)( versioning=(?<versioning>.*?))?\\s+version: (?<currentValue>.*)\\s"
]
},
{
"customType": "regex",
"fileMatch": [
"^Dockerfile$"
],
"matchStrings": [
"#\\s*renovate:\\s*?(release=(?<release>.*?))?\\s*depName=(?<depName>.*?)?\\sENV .*?_VERSION=\"(?<currentValue>.*)\""
],
"registryUrlTemplate": "https://deb.debian.org/debian?{{#if release }}release={{release}}{{else}}suite=stable{{/if}}&components=main,contrib,non-free&binaryArch=amd64",
"datasourceTemplate": "deb"
}
]
}
10 changes: 9 additions & 1 deletion .github/workflows/closing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ on:
issues:
types: [closed]

concurrency:
group: ${{ github.workflow }}-${{ github.event.issue.id }}
cancel-in-progress: true

permissions:
contents: read

Expand All @@ -24,7 +28,11 @@ jobs:
if: |
github.actor != 'renovate[bot]' &&
github.event.issue.state_reason == 'completed' &&
(contains(github.event.issue.labels.*.name, 'question') && ! contains(github.event.issue.labels.*.name, 'duplicate') && ! contains(github.event.issue.labels.*.name, 'wontfix')) || join(github.event.issue.labels.*.name) == ''
(
contains(github.event.issue.labels.*.name, 'question') &&
! contains(github.event.issue.labels.*.name, 'duplicate') &&
! contains(github.event.issue.labels.*.name, 'wontfix')
) || join(github.event.issue.labels.*.name) == ''
with:
token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.issue.number }}
Expand Down
11 changes: 5 additions & 6 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ name: Pre-commit check
on:
push:
branches-ignore:
- deepsource-fix-**
- renovate/**
- weblate
pull_request:
Expand All @@ -35,13 +34,13 @@ jobs:
id: detect
run: |
if test -f requirements-lint.txt ; then
echo "method=requirements" >> $GITHUB_OUTPUT
echo "method=requirements" >> "$GITHUB_OUTPUT"
elif test -f pyproject.toml && grep -q dependency-groups pyproject.toml ; then
echo "method=pep735" >> $GITHUB_OUTPUT
echo "method=pep735" >> "$GITHUB_OUTPUT"
elif test -f pyproject.toml && grep -q dependency-groups pyproject.toml ; then
echo "method=pyproject" >> $GITHUB_OUTPUT
echo "method=pyproject" >> "$GITHUB_OUTPUT"
else
echo "method=uvx" >> $GITHUB_OUTPUT
echo "method=uvx" >> "$GITHUB_OUTPUT"
fi
- name: pre-commit (PEP 735)
if: steps.detect.outputs.method == 'pep735'
Expand All @@ -60,7 +59,7 @@ jobs:
run: uv pip install --system -r requirements-lint.txt
- name: Install dependencies
if: steps.detect.outputs.method == 'pyproject'
run: uv pip install --system $(sed -n 's/.*"\(pre-commit==\([^"]*\)\)".*/\1/p' pyproject.toml)
run: uv pip install --system "$(sed -n 's/.*"\(pre-commit==\([^"]*\)\)".*/\1/p' pyproject.toml)"
- name: pre-commit (installed)
if: steps.detect.outputs.method == 'requirements' || steps.detect.outputs.method == 'pyproject'
run: pre-commit run --all
Expand Down
4 changes: 4 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ repos:
- mdformat-ruff==0.1.3
- mdformat-shfmt==0.2.0
- mdformat_tables==1.0.0
- repo: https://github.com/rhysd/actionlint
rev: v1.7.7
hooks:
- id: actionlint
exclude: ^.*\.(csv|svg)$
ci:
autoupdate_schedule: quarterly

0 comments on commit 6e6276e

Please sign in to comment.