Skip to content

chore(deps): update pre-commit hook astral-sh/ruff-pre-commit to v0.1… #324

chore(deps): update pre-commit hook astral-sh/ruff-pre-commit to v0.1…

chore(deps): update pre-commit hook astral-sh/ruff-pre-commit to v0.1… #324

Workflow file for this run

# Copyright © Michal Čihař <[email protected]>
#
# SPDX-License-Identifier: CC0-1.0
name: mypy
on:
push:
branches-ignore:
- renovate/**
- weblate
pull_request:
permissions:
contents: read
jobs:
mypy:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
with:
persist-credentials: false
- name: Install apt dependencies
run: |
sudo apt update
sudo apt install libcairo-dev gir1.2-pango-1.0 libgirepository-2.0-dev libacl1-dev gettext liblz4-dev libzstd-dev libxxhash-dev gir1.2-rsvg-2.0 libleptonica-dev libtesseract-dev
- name: Setup Python
id: setup_python
uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0
with:
python-version: '3.14'
- uses: astral-sh/setup-uv@ed21f2f24f8dd64503750218de024bcf64c7250a # v7.1.5
with:
save-cache: ${{ github.ref == 'refs/heads/main' }}
cache-suffix: ${{ steps.setup_python.outputs.python-version }}
version: 0.9.17
- name: Install deps
env:
CI_DATABASE: postgresql
run: |
uv sync --group types
uv pip install https://github.com/WeblateOrg/weblate/archive/main.zip
- name: Run mypy
env:
CI_DATABASE: postgresql
run: |
echo "::add-matcher::.github/matchers/mypy.json"
uv run --no-sync mypy --show-column-numbers wlhosted
echo "::remove-matcher owner=mypy::"