Skip to content

Commit

Permalink
Sync with WeblateOrg/meta
Browse files Browse the repository at this point in the history
  • Loading branch information
nijel committed Jul 12, 2024
1 parent ffecc86 commit 594db40
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
"^Dockerfile$"
],
"matchStrings": [
"ENV WEBLATE_VERSION (?<currentValue>.*?)\\n"
"ENV WEBLATE_VERSION=(?<currentValue>.*?)\\n"
],
"depNameTemplate": "Weblate",
"datasourceTemplate": "pypi",
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
language: [python]
steps:
- name: Checkout repository
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
uses: actions/checkout@v4 # v4

- name: Initialize CodeQL
uses: github/codeql-action/init@v3
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,25 +24,25 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: |
~/.cache/pip
~/.cache/pre-commit
key: ${{ runner.os }}-pre-commit-${{ hashFiles('**/requirements*.txt') }}-${{ hashFiles('.pre-commit-config.yaml') }}-${{ hashFiles('pyproject.toml') }}
path: ~/.cache/pre-commit
key: ${{ runner.os }}-pre-commit-${{ hashFiles('.pre-commit-config.yaml') }}
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Update pip
run: python -m pip install --upgrade pip wheel
- name: Install uv
run: curl -LsSf https://astral.sh/uv/install.sh | sh
- name: Install dependencies
run: |
if [ -f requirements-lint.txt ] ; then
pip install -r requirements-lint.txt
uv pip install --system -r requirements-lint.txt
else
pip install $(sed -n 's/.*"\(pre-commit==\([^"]*\)\)".*/\1/p' pyproject.toml)
uv pip install --system $(sed -n 's/.*"\(pre-commit==\([^"]*\)\)".*/\1/p' pyproject.toml)
fi
- name: pre-commit
run: pre-commit run --all
env:
RUFF_OUTPUT_FORMAT: github
- name: diff
run: git diff
if: always()
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ Twitter = "https://twitter.com/WeblateOrg"
profile = "black"

[tool.ruff]
output-format = "github"
target-version = "py38"

[tool.ruff.lint]
Expand Down

0 comments on commit 594db40

Please sign in to comment.