Skip to content

Clean init_data

Clean init_data #1080

Workflow file for this run

# https://github.com/tox-dev/action-pre-commit-uv
name: "pre-commit"
on:
push:
branches:
- main
pull_request: ~
env:
PYTHON_VERSION: 3.13.1
UV_VERSION: 0.5.24
PRE_COMMIT_VERSION: 4.1.0
PRE_COMMIT_UV_VERSION: 4.1.4
jobs:
run-pre-commit:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
name: Checkout
- name: Install uv ${{ env.UV_VERSION }} & Python ${{ env.PYTHON_VERSION }}
uses: astral-sh/setup-uv@v5
with:
enable-cache: true
python-version: ${{ env.PYTHON_VERSION }}
version: ${{ env.UV_VERSION }}
- name: pre-commit cache
id: precommit_cache
uses: actions/cache@v4
with:
path: ~/.cache/pre-commit
key: pre-commit-${{ runner.os }}-${{ env.PYTHON_VERSION }}-pre-commit-${{ env.PRE_COMMIT_VERSION }}-${{ hashFiles('.pre-commit-config.yaml') }}
restore-keys: pre-commit-${{ runner.os }}-${{ env.PYTHON_VERSION }}-pre-commit-${{ env.PRE_COMMIT_VERSION }}-
- name: Run pre-commit
# TODO:
# Try to separate the installation of pre-commit and pre-commit-uv,
# without hurting the cache.
run: uv run --no-sync --with pre-commit==${{ env.PRE_COMMIT_VERSION }} --with pre-commit-uv==${{ env.PRE_COMMIT_UV_VERSION }} pre-commit run --all-files