Skip to content

[save-images] Make all threads exception-safe #527

[save-images] Make all threads exception-safe

[save-images] Make all threads exception-safe #527

# Check PySceneDetect code lint warnings and formatting.
name: Static Analysis
on:
pull_request:
paths:
- scenedetect/**
- tests/**
push:
paths:
- scenedetect/**
- tests/**
jobs:
check_format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: '3.12'
cache: 'pip'
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
python -m pip install av opencv-python-headless --only-binary ":all:"
python -m pip install -r requirements_headless.txt
- name: Check Code Format (yapf)
if: ${{ hashFiles('.style.yapf') != '' }}
run: |
python -m pip install --upgrade yapf toml
python -m yapf --diff --recursive scenedetect/ tests/
- name: Static Analysis (ruff)
if: ${{ hashFiles('.style.yapf') == '' }}
run: |
python -m pip install --upgrade ruff
python -m ruff check
python -m ruff format --check