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 e708d00 commit be898a2
Show file tree
Hide file tree
Showing 6 changed files with 33 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
2 changes: 2 additions & 0 deletions .github/workflows/setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,5 @@ jobs:
- name: Publish package
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
run: uv publish --trusted-publishing always
permissions:
contents: read
2 changes: 2 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,5 @@ jobs:
run: |
curl https://deepsource.io/cli | sh
./bin/deepsource report --analyzer test-coverage --key python --value-file ./coverage.xml
permissions:
contents: read
4 changes: 4 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,9 @@ repos:
hooks:
- id: reuse

- repo: https://github.com/rhysd/actionlint
rev: v1.7.7
hooks:
- id: actionlint
ci:
autoupdate_schedule: quarterly

0 comments on commit be898a2

Please sign in to comment.