Skip to content

Commit 34dc4c0

Browse files
committed
chore: Sync with WeblateOrg/meta
1 parent 672f141 commit 34dc4c0

File tree

6 files changed

+45
-22
lines changed

6 files changed

+45
-22
lines changed

.github/renovate.json

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
"labels": [
33
"dependencies"
44
],
5+
"lockFileMaintenance": {
6+
"enabled": true
7+
},
58
"rangeStrategy": "widen",
69
"dependencyDashboard": true,
710
"automerge": true,
@@ -94,7 +97,7 @@
9497
{
9598
"customType": "regex",
9699
"fileMatch": [
97-
"^Dockerfile$"
100+
"^.*Dockerfile$"
98101
],
99102
"matchStrings": [
100103
"ENV WEBLATE_VERSION=(?<currentValue>.*?)\\n"
@@ -103,6 +106,18 @@
103106
"datasourceTemplate": "pypi",
104107
"versioningTemplate": "pep440"
105108
},
109+
{
110+
"customType": "regex",
111+
"fileMatch": [
112+
"^.*Dockerfile$"
113+
],
114+
"matchStrings": [
115+
"ENV UV_VERSION=(?<currentValue>.*?)\\n"
116+
],
117+
"depNameTemplate": "uv",
118+
"datasourceTemplate": "pypi",
119+
"versioningTemplate": "pep440"
120+
},
106121
{
107122
"customType": "regex",
108123
"fileMatch": [

.github/workflows/pre-commit.yml

Lines changed: 25 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -29,32 +29,40 @@ jobs:
2929
- name: Setup Python
3030
uses: actions/setup-python@v5
3131
with:
32-
python-version: '3.12'
32+
python-version: '3.13'
3333
- uses: astral-sh/setup-uv@v3
34-
- name: detect PEP 735
35-
id: pep735
34+
- name: detect method
35+
id: detect
3636
run: |
37-
if grep -q dependency-groups pyproject.toml ; then
38-
echo "found=1" >> $GITHUB_OUTPUT
37+
if test -f requirements-lint.txt ; then
38+
echo "method=requirements" >> $GITHUB_OUTPUT
39+
elif test -f pyproject.toml && grep -q dependency-groups pyproject.toml ; then
40+
echo "method=pep735" >> $GITHUB_OUTPUT
41+
elif test -f pyproject.toml && grep -q dependency-groups pyproject.toml ; then
42+
echo "method=pyproject" >> $GITHUB_OUTPUT
3943
else
40-
echo "found=0" >> $GITHUB_OUTPUT
44+
echo "method=uvx" >> $GITHUB_OUTPUT
4145
fi
42-
- name: pre-commit
43-
if: ${{ steps.pep735.outputs.found == 1 }}
46+
- name: pre-commit (PEP 735)
47+
if: steps.detect.outputs.method == 'pep735'
4448
run: uv run --only-group pre-commit pre-commit run --all
4549
env:
4650
RUFF_OUTPUT_FORMAT: github
4751
REUSE_OUTPUT_FORMAT: github
52+
- name: pre-commit (uvx)
53+
if: steps.detect.outputs.method == 'uvx'
54+
run: uvx pre-commit run --all
55+
env:
56+
RUFF_OUTPUT_FORMAT: github
57+
REUSE_OUTPUT_FORMAT: github
4858
- name: Install dependencies
49-
if: ${{ steps.pep735.outputs.found == 0 }}
50-
run: |
51-
if [ -f requirements-lint.txt ] ; then
52-
uv pip install --system -r requirements-lint.txt
53-
else
54-
uv pip install --system $(sed -n 's/.*"\(pre-commit==\([^"]*\)\)".*/\1/p' pyproject.toml)
55-
fi
56-
- name: pre-commit
57-
if: ${{ steps.pep735.outputs.found == 0 }}
59+
if: steps.detect.outputs.method == 'requirements'
60+
run: uv pip install --system -r requirements-lint.txt
61+
- name: Install dependencies
62+
if: steps.detect.outputs.method == 'pyproject'
63+
run: uv pip install --system $(sed -n 's/.*"\(pre-commit==\([^"]*\)\)".*/\1/p' pyproject.toml)
64+
- name: pre-commit (installed)
65+
if: steps.detect.outputs.method == 'requirements' || steps.detect.outputs.method == 'pyproject'
5866
run: pre-commit run --all
5967
env:
6068
RUFF_OUTPUT_FORMAT: github

.github/workflows/setup.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- name: Setup Python
1616
uses: actions/setup-python@v5
1717
with:
18-
python-version: '3.12'
18+
python-version: '3.13'
1919
- uses: astral-sh/setup-uv@v3
2020
with:
2121
enable-cache: true

.github/workflows/submodules-update.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
- name: Setup Python
3030
uses: actions/setup-python@v5
3131
with:
32-
python-version: '3.12'
32+
python-version: '3.13'
3333
- uses: astral-sh/setup-uv@v3
3434
with:
3535
enable-cache: true

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ jobs:
1313
- uses: actions/checkout@v4
1414
- uses: actions/setup-python@v5
1515
with:
16-
python-version: '3.12'
16+
python-version: '3.13'
1717
- name: Lint
1818
run: ./scripts/lint

.github/workflows/update-generated.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
- name: Setup Python
3030
uses: actions/setup-python@v5
3131
with:
32-
python-version: '3.12'
32+
python-version: '3.13'
3333
- uses: astral-sh/setup-uv@v3
3434
with:
3535
enable-cache: true

0 commit comments

Comments
 (0)