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 Nov 3, 2024
1 parent baacdb4 commit f3130a0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,26 +35,26 @@ jobs:
id: pep735
run: |
if grep -q dependency-groups pyproject.toml ; then
echo "found=true" >> $GITHUB_OUTPUT
echo "found=1" >> $GITHUB_OUTPUT
else
echo "found=false" >> $GITHUB_OUTPUT
echo "found=0" >> $GITHUB_OUTPUT
fi
- name: pre-commit
if: ${{ steps.pep735.outputs.found }}
if: ${{ steps.pep735.outputs.found == 1 }}
run: uv run --only-group pre-commit pre-commit run --all
env:
RUFF_OUTPUT_FORMAT: github
REUSE_OUTPUT_FORMAT: github
- name: Install dependencies
if: ${{ ! steps.pep735.outputs.found }}
if: ${{ steps.pep735.outputs.found == 0 }}
run: |
if [ -f requirements-lint.txt ] ; then
uv pip install --system -r requirements-lint.txt
else
uv pip install --system $(sed -n 's/.*"\(pre-commit==\([^"]*\)\)".*/\1/p' pyproject.toml)
fi
- name: pre-commit
if: ${{ ! steps.pep735.outputs.found }}
if: ${{ steps.pep735.outputs.found == 0 }}
run: pre-commit run --all
env:
RUFF_OUTPUT_FORMAT: github
Expand Down

0 comments on commit f3130a0

Please sign in to comment.