Skip to content
This repository has been archived by the owner on Nov 19, 2024. It is now read-only.

[pre-commit.ci] pre-commit autoupdate #97

[pre-commit.ci] pre-commit autoupdate

[pre-commit.ci] pre-commit autoupdate #97

Workflow file for this run

name: Lint
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
linting:
name: Linting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v2
with:
enable-cache: true
cache-dependency-glob: "uv.lock"
- name: Setup Python
run: uv python install
- name: Run Ruff
run: uv run ruff check --output-format=github .
type-checking:
name: Type Checking
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v2
with:
enable-cache: true
cache-dependency-glob: "uv.lock"
- name: Setup Python
run: uv python install
- name: Run mypy
# Using strict mode.
# Waiting for https://github.com/python/mypy/pull/17771
run: uv run mypy --strict flask_utils