Skip to content

Commit 76cc6b9

Browse files
committed
chore: Sync with WeblateOrg/meta
1 parent ef7151a commit 76cc6b9

3 files changed

Lines changed: 9 additions & 4 deletions

File tree

.github/renovate.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@
5252
},
5353
{
5454
"matchPackageNames": [
55-
"shellcheck-py/shellcheck-py"
55+
"shellcheck-py/shellcheck-py",
56+
"scop/pre-commit-shfmt"
5657
],
5758
"versioning": "loose"
5859
},

.github/workflows/pre-commit.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,13 @@ jobs:
4444
fi
4545
- name: pre-commit (PEP 735)
4646
if: steps.detect.outputs.method == 'pep735'
47-
run: uv run --no-sources --only-group pre-commit pre-commit run --all
47+
run: uv run --no-sources --only-group pre-commit pre-commit run --all --show-diff-on-failure
4848
env:
4949
RUFF_OUTPUT_FORMAT: github
5050
REUSE_OUTPUT_FORMAT: github
5151
- name: pre-commit (uvx)
5252
if: steps.detect.outputs.method == 'uvx'
53-
run: uvx pre-commit run --all
53+
run: uvx pre-commit run --all --show-diff-on-failure
5454
env:
5555
RUFF_OUTPUT_FORMAT: github
5656
REUSE_OUTPUT_FORMAT: github
@@ -62,7 +62,7 @@ jobs:
6262
run: uv pip install --system "$(sed -n 's/.*"\(pre-commit==\([^"]*\)\)".*/\1/p' pyproject.toml)"
6363
- name: pre-commit (installed)
6464
if: steps.detect.outputs.method == 'requirements' || steps.detect.outputs.method == 'pyproject'
65-
run: pre-commit run --all
65+
run: pre-commit run --all --show-diff-on-failure
6666
env:
6767
RUFF_OUTPUT_FORMAT: github
6868
REUSE_OUTPUT_FORMAT: github

.pre-commit-config.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,5 +50,9 @@ repos:
5050
rev: v1.7.7
5151
hooks:
5252
- id: actionlint
53+
- repo: https://github.com/scop/pre-commit-shfmt
54+
rev: v3.11.0-1
55+
hooks:
56+
- id: shfmt
5357
ci:
5458
autoupdate_schedule: quarterly

0 commit comments

Comments
 (0)