Skip to content

[pre-commit.ci] pre-commit autoupdate (#89) #191

[pre-commit.ci] pre-commit autoupdate (#89)

[pre-commit.ci] pre-commit autoupdate (#89) #191

Workflow file for this run

name: code checks
permissions:
contents: read
pull-requests: write
on:
push:
branches:
- main
paths:
- .pre-commit-config.yaml
- .github/workflows/code_checks.yml
- '**.py'
- uv.lock
- pyproject.toml
- '**.ipynb'
pull_request:
branches:
- main
paths:
- .pre-commit-config.yaml
- .github/workflows/code_checks.yml
- '**.py'
- uv.lock
- pyproject.toml
- '**.ipynb'
jobs:
run-code-check:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Install uv
uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78
with:
# Install a specific version of uv.
version: "0.9.11"
enable-cache: true
- name: "Set up Python"
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405
with:
python-version-file: ".python-version"
- name: Install dependencies and check code
run: |
uv venv .venv
source .venv/bin/activate
uv sync --all-extras --dev
pre-commit run --all-files
- name: pip-audit (gh-action-pip-audit)
uses: pypa/gh-action-pip-audit@1220774d901786e6f652ae159f7b6bc8fea6d266
with:
virtual-environment: .venv/
# GHSA-xm59-rqc7-hhvf: nbconvert Windows-only vulnerability (no fix available as of 2025-12-22)
# This is a Windows-specific code execution vulnerability via inkscape.bat path traversal
# CI runs on Linux, and no patch exists yet (published 2025-12-18)
# TODO: Remove this ignore once nbconvert releases a patched version
ignore-vulns: |
GHSA-xm59-rqc7-hhvf